Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 44205a7

Browse files
committed
Install Gradle manually
This is because we need a more recent version for Fernflower than available in the repositories.
1 parent e74de3b commit 44205a7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

‎Dockerfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian AS buildbase
22

33
RUN set -xe \
44
&& apt-get update \
5-
&& apt-get install -y openjdk-11-jdk gradle \
5+
&& apt-get install -y openjdk-11-jdk \
66
&& apt-get clean
77

88
FROM debian AS runtimebase
@@ -14,6 +14,9 @@ RUN set -xe \
1414

1515
FROM buildbase AS dependencies
1616

17+
ARG GRADLE_VERSION=7.1
18+
ARG GRADLE_URL=https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip
19+
1720
ARG CFR_VERSION=0.151
1821
ARG CFR_URL=https://github.com/leibnitz27/cfr/releases/download/${CFR_VERSION}/cfr-${CFR_VERSION}.jar
1922

@@ -28,11 +31,18 @@ ARG JADX_URL=https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/j
2831

2932
ARG ENJARIFY_URL=https://github.com/Storyyeller/enjarify/archive/master.tar.gz
3033

31-
WORKDIR /dependencies
32-
3334
RUN set -xe \
3435
&& apt-get update \
35-
&& apt-get install -y curl
36+
&& apt-get install -y curl unzip
37+
38+
# A recent version of Gradle is needed to build Fernflower.
39+
RUN set -xe \
40+
&& curl -q -s -S -L --create-dirs -o ./gradle.zip $GRADLE_URL \
41+
&& unzip ./gradle.zip \
42+
&& mv ./gradle-${GRADLE_VERSION}/lib/* /usr/local/lib \
43+
&& mv ./gradle-${GRADLE_VERSION}/bin/* /usr/local/bin
44+
45+
WORKDIR /dependencies
3646

3747
RUN set -xe \
3848
&& curl -q -s -S -L --create-dirs -o ./out/cfr.jar $CFR_URL \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /