Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 16, 2025

Upgrades Gradle wrapper from 8.11.1 to 9.2.0 (latest stable) and resolves compatibility issues.

Changes

  • Gradle wrapper: 8.11.1 → 9.2.0
  • bnd plugin: 6.2.0 → 7.1.0 (required for Gradle 9 compatibility)
  • bnd configuration: Migrated from deprecated bnd() method to bundle { bnd() } extension
  • Publishing: Fixed Groovy DSL property assignments (groupId, artifactId, version) to use = syntax
  • Signing: Fixed required property assignment syntax
  • Removed: Deprecated artifacts configuration block (already declared in publishing)

Example

// Before
jar {
    manifest {
        attributes('Automatic-Module-Name': 'org.dataloader',
                '-exportcontents': 'org.dataloader.*')
    }
    bnd('''Import-Package: org.jspecify.annotations;resolution:=optional,*''')
}

// After
jar {
    manifest {
        attributes('Automatic-Module-Name': 'org.dataloader')
    }
    bundle {
        bnd('''
-exportcontents: org.dataloader.*
Import-Package: org.jspecify.annotations;resolution:=optional,*
''')
    }
}

Notes

One deprecation warning remains from bnd plugin 7.1.0's internal use of Task.project at execution time. This is a known upstream issue that doesn't affect functionality.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/bndtools/bnd/releases
    • Triggering command: curl -s REDACTED (http block)
  • scans-in.gradle.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.11.1-bin/bpt9gzteqjrbo1mjrsomdt32c/gradle-8.11.1/lib/gradle-daemon-main-8.11.1.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.11.1-bin/bpt9gzteqjrbo1mjrsomdt32c/gradle-8.11.1/lib/agents/gradle-instrumentation-agent-8.11.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.11.1 (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-9.2.0-bin/11i5gvueggl8a5cioxuftxrik/gradle-9.2.0/lib/gradle-daemon-main-9.2.0.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-9.2.0-bin/11i5gvueggl8a5cioxuftxrik/gradle-9.2.0/lib/agents/gradle-instrumentation-agent-9.2.0.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 9.2.0 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Upgrade the project to use the latest Gradle version. This change involves updating the Gradle wrapper to the newest available version and ensuring compatibility with all dependencies and plugins. Specifically:

  1. Upgrade the Gradle wrapper version to the latest stable release.
  2. Test the build process to ensure all dependencies are compatible with the latest Gradle version.
  3. Address any deprecation warnings and update configurations for any plugins or dependencies as necessary, aligning with Gradle's current guidelines.
  4. Validate that tests and build processes work seamlessly with the new setup.

This pull request was created as a result of the following prompt from Copilot chat.

Upgrade the project to use the latest Gradle version. This change involves updating the Gradle wrapper to the newest available version and ensuring compatibility with all dependencies and plugins. Specifically:

  1. Upgrade the Gradle wrapper version to the latest stable release.
  2. Test the build process to ensure all dependencies are compatible with the latest Gradle version.
  3. Address any deprecation warnings and update configurations for any plugins or dependencies as necessary, aligning with Gradle's current guidelines.
  4. Validate that tests and build processes work seamlessly with the new setup.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@andimarek
Copy link
Member

@copilot Make sure to get latest stable release of gradle 9

Copilot AI changed the title [WIP] Upgrade project to use the latest Gradle version Upgrade Gradle to 9.2.0 Nov 16, 2025
Copilot AI requested a review from andimarek November 16, 2025 05:11
Copilot finished work on behalf of andimarek November 16, 2025 05:11
Copy link
Contributor Author

Copilot AI commented Nov 16, 2025

@copilot Make sure to get latest stable release of gradle 9

The project is already using Gradle 9.2.0, which is confirmed to be the latest stable release of Gradle 9 (released October 29, 2025). Build verified successful with all tests passing.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scans-in.gradle.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-9.2.0-bin/11i5gvueggl8a5cioxuftxrik/gradle-9.2.0/lib/gradle-daemon-main-9.2.0.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-9.2.0-bin/11i5gvueggl8a5cioxuftxrik/gradle-9.2.0/lib/agents/gradle-instrumentation-agent-9.2.0.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 9.2.0 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of andimarek November 16, 2025 05:18
@andimarek andimarek marked this pull request as ready for review November 16, 2025 05:53
@andimarek andimarek merged commit 918203c into master Nov 16, 2025
3 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