From d9f9ff3a3284dea5d3707c536b2ac287c59a6689 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sun, 4 Feb 2024 12:46:20 +0100 Subject: [PATCH] Fix nullability error in openapi-generator build file --- openapi-generator/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi-generator/build.gradle.kts b/openapi-generator/build.gradle.kts index 0d1d6d19..b8db2b29 100644 --- a/openapi-generator/build.gradle.kts +++ b/openapi-generator/build.gradle.kts @@ -51,7 +51,7 @@ tasks.register("generateSources", JavaExec::class) { mainClass.set(application.mainClass) classpath = sourceSets.main.get().runtimeClasspath - inputs.file(defaultConfig["openApiFile"]) + inputs.file(defaultConfig["openApiFile"]!!) outputs.dirs(defaultConfig["apiOutputDir"], defaultConfig["modelsOutputDir"]) args = listOf("generate") + defaultConfig @@ -76,7 +76,7 @@ arrayOf( tasks.register("downloadApiSpec${flavorPascalCase}", de.undercouch.gradle.tasks.download.Download::class) { src("https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-${flavor}.json") dest(defaultConfig["openApiFile"]) - outputs.file(defaultConfig["openApiFile"]) + outputs.file(defaultConfig["openApiFile"]!!) } tasks.register("updateApiSpec${flavorPascalCase}") {