Upgrade gradle to 8.12.1 (from 8.12) and fix some build warnings (#910)

Build warning fixes:

* Return `tasks.register` as `tasks.create` is deprecated
* Use property accessor `.files` instead of function `.files()`
This commit is contained in:
Kushal Pisavadia
2025-01-27 23:01:19 +00:00
committed by GitHub
parent 5dc672731d
commit 11169d6691
4 changed files with 9 additions and 9 deletions

View File

@@ -52,13 +52,13 @@ dependencies {
// TODO: need to figure out how to properly generate javadoc here.
// For now, we'll include a dummy javadoc jar.
val javadocDummy by tasks.creating(Javadoc::class) { source = dummy.allJava }
val javadocDummy by tasks.registering(Javadoc::class) { source = dummy.allJava }
java { withJavadocJar() }
val javadocJar by
tasks.existing(Jar::class) {
from(javadocDummy.outputs.files)
from(javadocDummy.get().outputs.files)
archiveBaseName.set("pkl-tools-all")
}