Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tag-v1.0.3] gradle error #83

Open
xyloweb opened this issue Jul 11, 2024 · 1 comment
Open

[tag-v1.0.3] gradle error #83

xyloweb opened this issue Jul 11, 2024 · 1 comment

Comments

@xyloweb
Copy link

xyloweb commented Jul 11, 2024

=> ERROR [build 4/5] RUN gradle build 3.7s

[build 4/5] RUN gradle build:
0.446 Starting a Gradle Daemon (subsequent builds will be faster)
3.244
3.244 > Configure project :
3.244 fatal: detected dubious ownership in repository at '/home/gradle/src'
3.244 To add an exception for this directory, call:
3.244
3.245 git config --global --add safe.directory /home/gradle/src
3.245
3.245 FAILURE: Build failed with an exception.
3.245
3.245 * Where:
3.245 Build file '/home/gradle/src/build.gradle' line: 26
3.245
3.245 * What went wrong:
3.245 A problem occurred evaluating root project 'src'.
3.245 > Process 'command 'git'' finished with non-zero exit value 128
3.245
3.245 * Try:
3.245 > Run with
3.245 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
3.245
3.245 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
3.245
3.245 For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
3.246 --stacktrace option to get the stack trace.
3.246 > Run with --info or --debug option to get more log output.
3.246 > Run with --scan to get full insights.
3.246 > Get more help at https://help.gradle.org.
3.246
3.246 BUILD FAILED in 3s


Dockerfile:4

2 | COPY --chown=gradle:gradle . /home/gradle/src
3 | WORKDIR /home/gradle/src
4 | >>> RUN gradle build
5 | RUN unzip -d /app build/distributions/gtfsvtor.zip
6 |

ERROR: failed to solve: process "/bin/sh -c gradle build" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/s3wdnip58vytzg1sxnjymtvas

@laurentg
Copy link
Member

I just pushed a commit to upgrade to gradle v8 and Java 21, maybe this would fix this issue. Can you retest?

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

No branches or pull requests

2 participants