Skip to content

Commit

Permalink
Disable the configureondemand option for docker build
Browse files Browse the repository at this point in the history
After moving the clearly-defined client to a new "clients" directory in this PR we started getting error in docker build.
Root cause seems to be gradle/gradle#4823 that is not fixed yet.
This change is a workaround that suitable for docker build in clouds where no gradle files being cached. Workaround for local development is build with disabled configureondemand option once. For all further build it could be enabled back.

Signed-off-by: zhernovs <ext-andriy.zhernovskyi@here.com>
  • Loading branch information
zhernovs committed Nov 6, 2020
1 parent b29946c commit 834b031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN --mount=type=cache,target=/root/.gradle/ \
scripts/import_proxy_certs.sh && \
scripts/set_gradle_proxy.sh && \
sed -i -r 's,(^distributionUrl=)(.+)-all\.zip$,\1\2-bin.zip,' gradle/wrapper/gradle-wrapper.properties && \
./gradlew --no-daemon --stacktrace :cli:distTar
./gradlew --no-daemon --stacktrace --no-configure-on-demand :cli:distTar

FROM adoptopenjdk:11-jre-hotspot-bionic

Expand Down

0 comments on commit 834b031

Please sign in to comment.