diff --git a/build.gradle.kts b/build.gradle.kts index c85fb4cb..61f5fc34 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -202,7 +202,7 @@ tasks.named("build") { } publishMods { - file.set(tasks.named(finalJarTask).get().outputs.files.singleFile) + file.set(tasks.named(finalJarTask).flatMap { it.archiveFile }) changelog = "Please check the [GitHub wiki](https://github.com/embeddedt/ModernFix/wiki/Changelog) for major changes." type = STABLE