From ec65666c5826270f0544a4c3b787823c7c39951a Mon Sep 17 00:00:00 2001 From: Niels Pardon Date: Tue, 14 Jul 2026 09:48:06 +0200 Subject: [PATCH] build: replace deprecated Gradle delegated-property APIs Gradle 9.6 deprecated the Kotlin delegated-property forms 'by configurations.creating', 'by tasks.registering(...)', and 'by ...existing(...)'. Switch to the recommended direct create/register/named calls, which return the same types and silence the build-script deprecation warnings. --- core/build.gradle.kts | 6 +++--- isthmus/build.gradle.kts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index b44cef4f5..82efe34f1 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -78,7 +78,7 @@ signing { } // This allows specifying deps to be shadowed so that they don't get included in the POM file -val shadowImplementation by configurations.creating +val shadowImplementation = configurations.create("shadowImplementation") configurations[JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME].extendsFrom(shadowImplementation) @@ -267,8 +267,8 @@ project.configure { } } -val submodulesUpdate by - tasks.registering(Exec::class) { +val submodulesUpdate = + tasks.register("submodulesUpdate") { group = "Build Setup" description = "Updates (and inits) substrait git submodule" commandLine = listOf("git", "submodule", "update", "--init", "--recursive") diff --git a/isthmus/build.gradle.kts b/isthmus/build.gradle.kts index 0f7a88798..e5718f6e5 100644 --- a/isthmus/build.gradle.kts +++ b/isthmus/build.gradle.kts @@ -153,7 +153,7 @@ tasks { } // Register a separate task to run integration tests -val test by testing.suites.existing(JvmTestSuite::class) +val test = testing.suites.named("test") tasks.register("integrationTest") { description = "Run integration tests"