Skip to content

Upgrade Gradle wrapper and modernize build configuration#22

Merged
musketyr merged 4 commits into
masterfrom
claude/implement-story-194067-2cWFb
May 21, 2026
Merged

Upgrade Gradle wrapper and modernize build configuration#22
musketyr merged 4 commits into
masterfrom
claude/implement-story-194067-2cWFb

Conversation

@musketyr
Copy link
Copy Markdown
Collaborator

Summary

This PR updates the Gradle wrapper to version 9.5.0 and modernizes the build configuration by migrating from Kordamp Gradle plugins to Agorapulse Gradle plugins. It also upgrades Java target version to 25 and updates Groovy/Spock dependencies to their latest versions.

Key Changes

Gradle Wrapper & Build Infrastructure

  • Updated Gradle wrapper from older version to 9.5.0
  • Regenerated gradlew and gradlew.bat scripts with improved POSIX compliance and better error handling
  • Updated gradle-wrapper.properties with new distribution URL and added network timeout configuration

Plugin Migration

  • Replaced Kordamp Gradle plugins with Agorapulse Gradle plugins:
    • org.kordamp.gradle.*com.agorapulse.gradle.*
    • Simplified plugin management through pluginManagement block in settings.gradle
    • Removed complex config block in favor of plugin-specific configuration

Dependency Updates

  • Java: Updated target compatibility to Java 25 (from Java 8)
  • Groovy: Upgraded from 2.5.4 to 5.0.0 (Apache Groovy)
    • Changed dependency from org.codehaus.groovy to org.apache.groovy
  • Spock: Upgraded from 1.3-groovy-2.5 to 2.4-groovy-5.0
  • JUnit: Upgraded from 4.13 to 6.0.3
  • CodeNarc: Updated to 3.7.0-groovy-4.0

Build Configuration Simplification

  • Removed extensive config block with licensing, publishing, and quality settings
  • Moved plugin application to individual module gradle files
  • Simplified subproject configuration with conditional plugin application
  • Updated CI/CD workflows to use Java 25 instead of Java 11

Code Updates

  • Updated Spock extension imports to use new package structure from Spock 2.x
  • Added JVM arguments for Java module system compatibility in test tasks
  • Removed deprecated test resource folder system property configuration

Documentation

  • Updated guide plugin configuration to use Agorapulse version
  • Maintained asciidoctor configuration with improved formatting

https://claude.ai/code/session_01Cx81YJTvJg7w8Ku1LAhhP8

claude and others added 4 commits May 21, 2026 09:11
- Java 25, Groovy 5.0, Spock 2.4-groovy-5.0, Gradle 9.5.0
- Migrate from Kordamp to Agorapulse Gradle Plugins (4.4.0)
- Replace `com.gradle.enterprise` with `com.gradle.develocity` 4.3.1
- Migrate Spock extensions from `AbstractAnnotationDrivenExtension` (Spock 1) to `IAnnotationDrivenExtension` (Spock 2)
- Add spock-junit4 + JUnit Platform launcher; open java.util/java.lang for system-rules on JDK 17+
- Pin codenarc to 3.7.0-groovy-4.0 (latest CodeNarc release as of 2026-05; Groovy 5 variant not yet published)
- Gate release.yml ping job on non-prerelease releases; bump CI JDK to 25
- Add 5 to micronautCompatibility payload
…oot check task [sc-194067]

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
After the M5 migration this lib is no longer M4-compatible; declaring
`micronautCompatibility: [4, 5]` would cause the BOM to also bump the
M4-tracked version slot. The correct payload for the post-migration
release is `[5]` only.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@musketyr musketyr marked this pull request as ready for review May 21, 2026 19:20
@musketyr musketyr merged commit 9dc6ba2 into master May 21, 2026
2 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