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

Switch to Gradle 7.4 #495

Closed
Jeeppler opened this issue Dec 17, 2020 · 2 comments · Fixed by #1080
Closed

Switch to Gradle 7.4 #495

Jeeppler opened this issue Dec 17, 2020 · 2 comments · Fixed by #1080

Comments

@Jeeppler
Copy link
Member

Jeeppler commented Dec 17, 2020

Situation

Currently we cannot update to gradle 7.x

Reasons

Prepare for Gradle 7.0. Gradle 7.0 will have several breaking changes:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

To show where changes are necessary use:

./gradlew --warning-mode all

Wanted

We want to use gradle version 7.4 and have an updated gradle wrapper as well

Solution

@de-jcup de-jcup added this to the Next release planning milestone Jan 21, 2021
@de-jcup de-jcup removed this from the Next release planning milestone Jan 28, 2021
@Jeeppler
Copy link
Member Author

SpringBoot 2.5 will support Gradle 7.0: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5.0-RC1-Release-Notes#gradle-7x-support

Issue regarding the upgrade to SpringBoot 2.5: #609

@Jeeppler Jeeppler added the epic label May 28, 2021
@Jeeppler Jeeppler mentioned this issue Jul 14, 2021
@de-jcup de-jcup self-assigned this Mar 1, 2022
@de-jcup de-jcup changed the title Prepare for Gradle 7.0 Switch to Gradle 7.0 Mar 1, 2022
@de-jcup de-jcup changed the title Switch to Gradle 7.0 Switch to Gradle 7.4 Mar 1, 2022
@de-jcup de-jcup added this to the Server 0.30.0 milestone Mar 1, 2022
de-jcup added a commit that referenced this issue Mar 1, 2022
@de-jcup
Copy link
Member

de-jcup commented Mar 1, 2022

With last commit I got following error messages inside build:

> Task :sechub-testframework:build
> Task :sechub-doc:openapi3
> Task :sechub-doc:generateOpenapi

> Task :sechub-developertools:buildDeveloperAdminUI FAILED
FAILURE: Build failed with an exception.


* What went wrong:
Execution failed for task ':sechub-developertools:buildDeveloperAdminUI'.
> Entry META-INF/LICENSE.txt is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.4/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 4m 2s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
336 actionable tasks: 334 executed, 2 up-to-date
Error: Process completed with exit code 1.

Solution :
will use
duplicatesStrategy = DuplicatesStrategy.EXCLUDE to contain duplicated license text files (which is correct in this case). So output as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants