Upgrade Gradle to 9.0.0 by Copilot · Pull Request #125 · graphql-java/graphql-java-extended-validation

Upgrades Gradle wrapper from 8.3 to 9.0.0 and resolves compatibility issues.

Changes

  • Gradle wrapper: Updated to 9.0.0 with enhanced security properties (validateDistributionUrl, networkTimeout)
  • Test configuration: Added useJUnitPlatform() to enable Spock test discovery (required in Gradle 9.0+)
  • Publishing syntax: Fixed deprecated property assignment in maven(MavenPublication) block
// Before
groupId group
artifactId 'graphql-java-extended-validation'

// After  
groupId = group
artifactId = 'graphql-java-extended-validation'

Runtime Requirements

Gradle 9.0 requires JVM 17+ to run the daemon. Project continues to compile for Java 11 via toolchain configuration. CI workflows use JDK 11 for compilation and auto-detect JDK 17 for Gradle execution.

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:

  • downloads.gradle.org
    • Triggering command: wget -q --spider REDACTED (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.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.