Skip to content

Conversation

Copy link

Copilot AI commented Jan 29, 2026

Gradle 9.3.0 changed method resolution in task action contexts. Calling project.exec() within doLast now fails with Could not find method exec().

Changes

  • Replace project.execexec in doLast closures (13 occurrences)
  • Replace project.copycopy for consistency (3 occurrences)

Files Modified

  • linux/jdk/debian/build.gradle
  • linux/jre/debian/build.gradle
  • linux/ca-certificates/debian/build.gradle

Example

doLast {
    // Before (fails in Gradle 9.3.0)
    project.exec {
        commandLine "docker", "build", ...
    }
    
    // After (works in Gradle 9.3.0)
    exec {
        commandLine "docker", "build", ...
    }
}

These methods are directly available in the task action delegate and don't require the project. qualifier.

Original prompt

Fix the failing GitHub Actions workflow Check JDK on microsoft 11 Debian
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 61842409748
Job URL: https://github.com/adoptium/installer/actions/runs/21470727727/job/61842409748


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

… doLast blocks

Co-authored-by: karianna <180840+karianna@users.noreply.github.com>
@karianna karianna marked this pull request as ready for review January 29, 2026 08:27
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow Check JDK on Microsoft 11 Debian Fix Gradle 9.3.0 compatibility: use exec() instead of project.exec() in doLast blocks Jan 29, 2026
Copilot AI requested a review from karianna January 29, 2026 08:27
@karianna karianna requested a review from steelhead31 January 29, 2026 08:28
@karianna
Copy link
Contributor

Another fix for #1325

Copy link
Contributor

@steelhead31 steelhead31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@karianna karianna merged commit eeeabcb into dependabot/gradle/linux/gradle-wrapper-9.3.0 Jan 29, 2026
10 checks passed
@karianna karianna deleted the copilot/fix-check-jdk-workflow branch January 29, 2026 23:54
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.

3 participants