Skip to content

build: replace deprecated Gradle delegated-property APIs#1008

Merged
bestbeforetoday merged 1 commit into
substrait-io:mainfrom
nielspardon:build/gradle-9.6-deprecations
Jul 15, 2026
Merged

build: replace deprecated Gradle delegated-property APIs#1008
bestbeforetoday merged 1 commit into
substrait-io:mainfrom
nielspardon:build/gradle-9.6-deprecations

Conversation

@nielspardon

Copy link
Copy Markdown
Member

Building locally with Gradle 9.6 surfaces Kotlin deprecation warnings for the delegated-property forms used in the build scripts:

  • val shadowImplementation by configurations.creating
  • val submodulesUpdate by tasks.registering(Exec::class) { … }
  • val test by testing.suites.existing(JvmTestSuite::class)

Gradle 9.6 deprecated these in favor of the direct create / register<T> / named<T> calls (see the Gradle 9.6 upgrading guide). This switches to the recommended forms, which return the same types (Configuration, TaskProvider<Exec>, NamedDomainObjectProvider<JvmTestSuite>), so downstream uses (extendsFrom, dependsOn, test.map { … }) are unchanged.

No functional change — build configuration is verified clean with the warnings gone.

🤖 Generated with AI

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.
@bestbeforetoday bestbeforetoday merged commit 80a003f into substrait-io:main Jul 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants