Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JDK version to 17 #8

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 \