Skip to content

Fix deprecated Gradle Kotlin DSL delegate providers (Gradle 9.6) - #4004

Merged
duanemay merged 1 commit into
developfrom
worktree-gradle-9.6-deprecations
Jul 28, 2026
Merged

Fix deprecated Gradle Kotlin DSL delegate providers (Gradle 9.6)#4004
duanemay merged 1 commit into
developfrom
worktree-gradle-9.6-deprecations

Conversation

@duanemay

@duanemay duanemay commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Gradle 9.6 flags by configurations.creating / by tasks.registering as deprecated (see the Gradle 9.6 upgrading guide).
  • Replaces these in model/build.gradle.kts and server/build.gradle.kts with the recommended configurations.create() / tasks.register<Type>(name) { } API, removing the associated configure-time warnings.

Use configurations.create()/tasks.register() instead of the
by creating/by registering delegate providers, which Gradle 9.6
flags as deprecated in the upgrade guide.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Gradle Kotlin DSL usage in the model and server modules to eliminate Gradle 9.6 deprecation warnings around delegated “creating/registering” providers, while preserving the existing build behavior (published artifacts and task wiring).

Changes:

  • Replaces by tasks.registering(Jar::class) with tasks.register<Jar>(name) { ... } for JAR-producing tasks.
  • Replaces by configurations.creating with configurations.create(name) for the testArtifacts configuration.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
server/build.gradle.kts Updates the tomcatListenerJar registration to use tasks.register<Jar>(...) while keeping the archive publication the same.
model/build.gradle.kts Creates testArtifacts via configurations.create(...) and updates testJar to tasks.register<Jar>(...), keeping the testArtifacts outgoing artifact intact.

@github-project-automation github-project-automation Bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Jul 28, 2026
@duanemay
duanemay merged commit b7195cb into develop Jul 28, 2026
27 checks passed
@duanemay
duanemay deleted the worktree-gradle-9.6-deprecations branch July 28, 2026 15:40
@github-project-automation github-project-automation Bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants