Skip to content

Commit

Permalink
Merge pull request #8 from wordpress-mobile/add/jdk-17-support
Browse files Browse the repository at this point in the history
Update JDK version to 17
  • Loading branch information
oguzkocer authored Jul 25, 2023
2 parents ab81f28 + 0c31eb9 commit 95331f6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,29 @@ RUN wget https://dl.google.com/android/repository/commandlinetools-linux-6858069

ENV PATH="//usr/lib/android-sdk/cmdline-tools/latest/bin:${PATH}"

RUN sdkmanager "platforms;android-30" "system-images;android-30;google_apis_playstore;x86_64" "build-tools;30.0.0"

RUN yes | sdkmanager --licenses

# Uninstall '29.0.3' so that the builds won't complain about it being installed in incorrect location
RUN sdkmanager --uninstall "build-tools;29.0.3"

RUN sdkmanager --install \
"build-tools;33.0.2" \
"build-tools;34.0.0" \
"platform-tools" \
"platforms;android-33" \
"platforms;android-34"

RUN mkdir scripts
COPY scripts/ scripts/
ENV PATH="/scripts/:${PATH}"

# Cache Gradle 7.4
# Cache Gradle 8.2.1
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 \
&& wget https://services.gradle.org/distributions/gradle-8.2.1-bin.zip \
&& unzip gradle-8.2.1-bin.zip \
&& touch settings.gradle \
&& gradle-7.4/bin/gradle wrapper --gradle-version 7.4 --distribution-type all \
&& gradle-8.2.1/bin/gradle wrapper --gradle-version 8.2.1 --distribution-type all \
&& ./gradlew \
&& cd .. \
&& rm -rf ./gradle-cache-tmp \

0 comments on commit 95331f6

Please sign in to comment.