Skip to content

Eliminate Gradle 10 deprecation warnings in assemble by modernizing task registration and Bnd plugin - #613

Merged
mkarg merged 2 commits into
masterfrom
copilot/fix-gradle-deprecation-warnings
Sep 20, 2026
Merged

mkarg merged 2 commits into
masterfrom
copilot/fix-gradle-deprecation-warnings

Conversation

Copilot AI commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

./gradlew assemble reported project-controlled deprecations that would break on Gradle 10. The warnings traced to deprecated Kotlin DSL task creation and an older Bnd plugin accessing Task.project at execution time.

  • Deprecation cleanup in build script

    • Replaced deprecated tasks.creating(...) usage with configuration-avoidant tasks.registering(...) for custom artifact tasks.
    • This keeps the same published artifacts (sourcesJar, javadocJar) while removing script-level deprecation usage.
  • Bnd plugin compatibility update

    • Bumped biz.aQute.bnd.builder from 7.1.0 to 7.4.0.
    • Removes the Task.project execution-time deprecation emitted from the plugin during :jar.
  • Scope and behavior

    • No functional changes to library code or publishing metadata.
    • Artifact composition remains unchanged; only Gradle/build-tooling compatibility was adjusted.
// before
val sourcesJar by tasks.creating(Jar::class) { ... }
val javadocJar by tasks.creating(Jar::class) { ... }
id("biz.aQute.bnd.builder") version "7.1.0"

// after
val sourcesJar by tasks.registering(Jar::class) { ... }
val javadocJar by tasks.registering(Jar::class) { ... }
id("biz.aQute.bnd.builder") version "7.4.0"

Co-authored-by: mkarg <1701815+mkarg@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Gradle deprecation warnings in build process Eliminate Gradle 10 deprecation warnings in assemble by modernizing task registration and Bnd plugin Sep 20, 2026
Copilot AI requested a review from mkarg September 20, 2026 12:03
@mkarg
mkarg marked this pull request as ready for review September 20, 2026 12:12
@mkarg
mkarg merged commit 9d14376 into master Sep 20, 2026
1 check passed
@mkarg
mkarg deleted the copilot/fix-gradle-deprecation-warnings branch September 20, 2026 12:13
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