diff --git a/buildSrc/src/main/kotlin/pklGradlePluginTest.gradle.kts b/buildSrc/src/main/kotlin/pklGradlePluginTest.gradle.kts index 5b787475..d950d756 100644 --- a/buildSrc/src/main/kotlin/pklGradlePluginTest.gradle.kts +++ b/buildSrc/src/main/kotlin/pklGradlePluginTest.gradle.kts @@ -23,7 +23,7 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly| when (val taskNameSuffix = matchResult.groupValues[1]) { "All" -> - tasks.register("compatibilityTestAll") { + task("compatibilityTestAll") { dependsOn( "compatibilityTestReleases", "compatibilityTestCandidate", @@ -32,7 +32,7 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly| } // releases in configured range "Releases" -> - tasks.register("compatibilityTestReleases") { + task("compatibilityTestReleases") { val versionInfos = GradleVersionInfo.fetchReleases() val allVersions = versionInfos @@ -49,7 +49,7 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly| } // latest release (if not developing against latest) "Latest" -> - tasks.register("compatibilityTestLatest") { + task("compatibilityTestLatest") { val versionInfo = GradleVersionInfo.fetchCurrent() if (versionInfo.version == gradle.gradleVersion) { doLast { @@ -64,7 +64,7 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly| } // active release candidate (if any) "Candidate" -> - tasks.register("compatibilityTestCandidate") { + task("compatibilityTestCandidate") { val versionInfo = GradleVersionInfo.fetchRc() if (versionInfo?.activeRc == true) { dependsOn(createCompatibilityTestTask(versionInfo)) @@ -74,7 +74,7 @@ tasks.addRule("Pattern: compatibilityTest[All|Releases|Latest|Candidate|Nightly| } // latest nightly "Nightly" -> - tasks.register("compatibilityTestNightly") { + task("compatibilityTestNightly") { val versionInfo = GradleVersionInfo.fetchNightly() dependsOn(createCompatibilityTestTask(versionInfo)) }