Skip to content

Commit

Permalink
#127: Add latest gradle 7 version, add duplicates strategy for integr…
Browse files Browse the repository at this point in the history
…ation test resources
  • Loading branch information
Sabrina Wullschleger committed Apr 18, 2024
1 parent c24bd51 commit 806ae67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 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.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 11 additions & 1 deletion gretl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,18 @@ cyclonedxBom {
//componentVersion = "2.0.0"
}

// https://github.com/gradle/gradle/issues/17236
/*
Starting with 7.0.0 there is no default strategy anymore. So it has to be explicitly set.
https://github.com/gradle/gradle/issues/17236
*/
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.6.4
ARG GRADLE_DOWNLOAD_SHA256=bed1da33cca0f557ab13691c77f38bb67388119e4794d113e051039b80af9bb1
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 806ae67

Please sign in to comment.