Fix nullability error in openapi-generator build file

This commit is contained in:
Niels van Velzen 2024-02-04 12:46:20 +01:00 committed by Max Rumpf
parent d4a6a10850
commit d9f9ff3a32

View File

@ -51,7 +51,7 @@ tasks.register("generateSources", JavaExec::class) {
mainClass.set(application.mainClass) mainClass.set(application.mainClass)
classpath = sourceSets.main.get().runtimeClasspath classpath = sourceSets.main.get().runtimeClasspath
inputs.file(defaultConfig["openApiFile"]) inputs.file(defaultConfig["openApiFile"]!!)
outputs.dirs(defaultConfig["apiOutputDir"], defaultConfig["modelsOutputDir"]) outputs.dirs(defaultConfig["apiOutputDir"], defaultConfig["modelsOutputDir"])
args = listOf("generate") + defaultConfig args = listOf("generate") + defaultConfig
@ -76,7 +76,7 @@ arrayOf(
tasks.register("downloadApiSpec${flavorPascalCase}", de.undercouch.gradle.tasks.download.Download::class) { tasks.register("downloadApiSpec${flavorPascalCase}", de.undercouch.gradle.tasks.download.Download::class) {
src("https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-${flavor}.json") src("https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-${flavor}.json")
dest(defaultConfig["openApiFile"]) dest(defaultConfig["openApiFile"])
outputs.file(defaultConfig["openApiFile"]) outputs.file(defaultConfig["openApiFile"]!!)
} }
tasks.register("updateApiSpec${flavorPascalCase}") { tasks.register("updateApiSpec${flavorPascalCase}") {