Skip to content

Commit

Permalink
Merge pull request #6 from wordpress-mobile/cache/gradle-7.4
Browse files Browse the repository at this point in the history
Cache Gradle 7.4
  • Loading branch information
oguzkocer authored Feb 24, 2022
2 parents eabf2fa + 7b35077 commit ab81f28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ RUN yes | sdkmanager --licenses
RUN mkdir scripts
COPY scripts/ scripts/
ENV PATH="/scripts/:${PATH}"

# Cache Gradle 7.4
RUN mkdir gradle-cache-tmp \
&& cd gradle-cache-tmp \
&& wget https://services.gradle.org/distributions/gradle-7.4-bin.zip \
&& unzip gradle-7.4-bin.zip \
&& touch settings.gradle \
&& gradle-7.4/bin/gradle wrapper --gradle-version 7.4 --distribution-type all \
&& ./gradlew \
&& cd .. \
&& rm -rf ./gradle-cache-tmp \

0 comments on commit ab81f28

Please sign in to comment.