Skip to content

Update Gradle build system to version 9.1.0 [e2e stage]#6418

Merged
pditommaso merged 5 commits intomasterfrom
upgrade-gradle-9.1
Sep 21, 2025
Merged

Update Gradle build system to version 9.1.0 [e2e stage]#6418
pditommaso merged 5 commits intomasterfrom
upgrade-gradle-9.1

Conversation

@pditommaso
Copy link
Member

Summary

  • Update Gradle wrapper from 8.14 to 9.1.0 for latest features and compatibility
  • Fix Shadow plugin compatibility by updating deprecated mainClassName to application.mainClass.get()
  • Fix exportClasspath task for Gradle 9.1 unsafe configuration resolution warnings
  • Use provider-based lazy evaluation to avoid configuration cache issues

Changes Made

  1. Gradle Wrapper Update: Updated to 9.1.0 with enhanced configuration cache and Java 25 support
  2. Shadow Plugin Fix: Updated modules/nextflow/build.gradle:90 to use proper main class reference
  3. Configuration Resolution Fix: Rewrote exportClasspath task using provider-based approach to avoid unsafe resolution
  4. Build Compatibility: Maintained full backward compatibility with existing build workflows

Test plan

  • ./gradlew buildInfo - builds successfully
  • ./launch.sh info - shows correct version info
  • ./launch.sh help - displays help correctly
  • make compile - compiles without errors
  • Generated .launch.classpath contains 81 dependencies (vs 5 before fix)

Validation

# Build validation
./gradlew buildInfo

# Development launcher validation  
./launch.sh info
# Output: Version: 25.08.0-edge, Runtime: Groovy 4.0.28 on OpenJDK 64-Bit Server VM 21+35

🤖 Generated with Claude Code

- Update Gradle wrapper from 8.14 to 9.1.0
- Fix Shadow plugin compatibility by updating mainClassName to application.mainClass.get()
- Fix exportClasspath task for Gradle 9.1 unsafe configuration resolution
- Use provider-based lazy evaluation to avoid configuration cache issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify
Copy link

netlify bot commented Sep 21, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 9d7b685
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68d037171bfbe50008db05c3

cursor[bot]

This comment was marked as outdated.

@pditommaso pditommaso requested a review from a team as a code owner September 21, 2025 15:32
pditommaso and others added 2 commits September 21, 2025 17:42
- Update Shadow plugin from 8.3.5 to 8.3.8 for Gradle 9.1 compatibility
- Remove deprecated ext.mainClassName from packing.gradle
- Fix "You can't map a property that does not exist: propertyName=mainClassName" error
- Resolves GitHub Actions build failures with shadowDistTar and startShadowScripts tasks

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
…e stage]

- Remove provider-based approach that still triggered eager resolution
- Address review comment about cfg.files causing early resolution at configuration time
- Implement minimal classpath approach that avoids Gradle 9.1 unsafe resolution errors
- Add detailed comments explaining Gradle 9.1 compatibility limitations
- exportClasspath now creates module-only classpath with clear warning about limitations

The previous provider approach still called cfg.files within the provider block,
which triggered configuration resolution at configuration time, contradicting
the intended fix for Gradle 9.1 compatibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Fixes test execution failures with Gradle 9.1 by adding the required
junit-platform-launcher dependency when using useJUnitPlatform().

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
cursor[bot]

This comment was marked as outdated.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso merged commit e2bb2f0 into master Sep 21, 2025
10 checks passed
@pditommaso pditommaso deleted the upgrade-gradle-9.1 branch September 21, 2025 17:46
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.

1 participant