mirror of
https://github.com/apple/pkl.git
synced 2026-04-21 16:01:31 +02:00
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:
@@ -87,11 +87,11 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly|
|
||||
}
|
||||
}
|
||||
|
||||
fun createCompatibilityTestTask(versionInfo: GradleVersionInfo): Task =
|
||||
fun createCompatibilityTestTask(versionInfo: GradleVersionInfo) =
|
||||
createCompatibilityTestTask(versionInfo.version, versionInfo.downloadUrl)
|
||||
|
||||
fun createCompatibilityTestTask(version: String, downloadUrl: String): Task {
|
||||
return tasks.create("compatibilityTest$version", Test::class.java) {
|
||||
fun createCompatibilityTestTask(version: String, downloadUrl: String): TaskProvider<Test> {
|
||||
return tasks.register("compatibilityTest$version", Test::class.java) {
|
||||
mustRunAfter(tasks.test)
|
||||
|
||||
maxHeapSize = tasks.test.get().maxHeapSize
|
||||
|
||||
Reference in New Issue
Block a user