elastic / elastic/gradle-plugins

wrapper-provision-jdk plugin not updating Gradle wrapper after Gradle 9 upgrade

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
8
Avg merge
1d 8h
Merged PRs (30d)
24

Description

### Description

The `wrapper-provision-jdk` plugin appears to be incompatible with Gradle 9. After running the wrapper provisioning task, no changes are applied to the Gradle wrapper script.

### Steps to reproduce

1. Upgrade project to Gradle 9
2. Execute `./gradlew --rerun-tasks clean wrapperProvisionJdk` locally
3. Observe that the build succeeds but no modifications are made to the `gradlew` script

### Expected behaviour

The wrapper provisioning task should update the Gradle wrapper script to include JDK provisioning logic, as it did in Gradle 8.

### Actual behaviour

Build completes successfully with no changes to the wrapper files:
```
BUILD SUCCESSFUL in 4s
3 actionable tasks: 3 executed
```

The `gradlew` script remains unchanged after execution.

### Environment

- Gradle version: 9.1.0
- Plugin: wrapper-provision-jdk
- Execution context: Local machine (not CI/Renovate)

### Additional context

This issue was discovered during local testing after a Gradle version upgrade. The plugin may require updates to maintain compatibility with Gradle 9's wrapper implementation.

We're currently working around this by having devs provision manually.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.