-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dependency submission action should handle non-executable gradlew
script
#17
Comments
When I clone your repository, the
I think the error message is pretty clear, but the I think the action could be improved to handle a non-executable |
gradlew
script
gradlew
scriptgradlew
script
Instead of failing the build, detect a non-executable wrapper file and set the executable bit. Fixes #17
Instead of failing the build, detect a non-executable wrapper file and set the executable bit. Fixes #17
Thanks. |
I don't know about that, however, somehow changing my workflow file to this fixed the problem. Modern Android apps need JDK 17 but I don't know why we need to grant permission for the name: Dependency Submission
on: [ push ]
permissions:
contents: write
jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3 |
If you build from the command-line, you will execute If you are only building from the IDE, then you may never notice this being broken. I've pushed a fix for this issue, so with the next release you'll just see a warning in your workflow run, not an error. |
Gradle 8.6
JDK 17
I'm using the
dependency-submission
action and just used the simplest example.However, its action is failing and can't execute gradlew which I never changed and IDE generated on project initialization. Here I'm providing links to the full raw pipeline error and my gradlew file.
The text was updated successfully, but these errors were encountered: