molgenis / molgenis-service-armadillo

Armadillo; a DataSHIELD implementation, part of the MOLGENIS suite
https://molgenis.github.io/molgenis-service-armadillo/
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Resolve deprecations and upgrade to gradle 8 #543

Closed clemens-tolboom closed 11 months ago

clemens-tolboom commented 1 year ago

We are using v 7.6.3

./gradlew  --warning-mode all clean build docker assemble
...
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.6.3/userguide/command_line_interface.html#sec:command_line_warnings
./gradlew --warning-mode all

gives 3 warnings in total. Make sure all tasks are touched

./gradlew  --warning-mode all clean build docker assemble

Upgrade

./gradlew wrapper --gradle-version 8.0
erikzwart commented 12 months ago

Installed gradle 8.4 (Ubuntu 22.04) but did not change behaviour.

Second try was to change the distributionUrl in the file ./gradle/wrapper/gradle-wrapper.properties from: distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip

to

distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip

I do get less errors but ./gradlew clean docker still fails:

erikzwart commented 12 months ago

Editing the plugin in ./build.gradle to id 'com.palantir.docker' version '0.35.0' Did not resolve issue.

clemens-tolboom commented 11 months ago

I did a stab at it working from the deprecation warning out.

One lingered (forgot which one) so upgraded gradle to 8.0 which failed too.

Comparing with EMX2 weird thing is their docker part is same. We use boot jar instead of default.

To test the process we need to run

./gradlew  --warning-mode all clean build docker assemble

to cover most tasks.

branch(es)

See https://github.com/molgenis/molgenis-service-armadillo/branches/all?query=chore%2Fremo

clemens-tolboom commented 11 months ago

Is merged through PR #578