Skip to content

Commit

Permalink
#127: upgrade to gradle 7.0, fix missing duplicate strategy for integ…
Browse files Browse the repository at this point in the history
…ration testing
  • Loading branch information
Sabrina Wullschleger committed Apr 5, 2024
1 parent d2d436f commit a978045
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions gretl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,9 @@ processResources{
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

// init_postgresql.sql seems to be copied multiple times.
// Starting with 7.0.0 there is no default strategy anymore. So it has to be explicitly set.
processIntegrationTestResources {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

4 changes: 2 additions & 2 deletions runtimeImage/gretl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ RUN apk add --no-cache bash ca-certificates java-cacerts curl \

ENV JAVA_TOOL_OPTIONS=-Duser.home=${HOME}
ENV GRADLE_HOME /opt/gradle
ENV GRADLE_VERSION 6.9.4
ARG GRADLE_DOWNLOAD_SHA256=3e240228538de9f18772a574e99a0ba959e83d6ef351014381acd9631781389a
ENV GRADLE_VERSION 7.0
ARG GRADLE_DOWNLOAD_SHA256=eb8b89184261025b0430f5b2233701ff1377f96da1ef5e278af6ae8bac5cc305
RUN set -o errexit -o nounset \
&& echo "Downloading Gradle" \
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
Expand Down

0 comments on commit a978045

Please sign in to comment.