Skip to content

Commit 5d7c10b

Browse files
committed
fix: use latest asdf API
1 parent 82a585e commit 5d7c10b

2 files changed

Lines changed: 30 additions & 22 deletions

File tree

.gitignore

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ build/
5757

5858
# Ignore Gradle build output directory
5959
build
60+
61+
.DS_Store
62+
.vscode

setup.sh

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,56 @@ echo "adding asdf openjdk plugin"
33
asdf plugin add java
44
echo "done"
55

6+
VERSION=temurin-24.0.0+36
7+
68
echo "installing java"
7-
asdf install java latest:temurin
9+
asdf install java $VERSION
810
echo "done"
911

1012
echo "set latest version to system wide version"
11-
asdf global java latest
13+
asdf set java $VERSION
1214
echo "done"
1315

1416
echo "updating automated JAVA_HOME export"
1517
echo ". ~/.asdf/plugins/java/set-java-home.zsh" >> ~/.zshrc
1618
echo "done"
1719

18-
echo "adding asdf ant plugin"
19-
asdf plugin add ant
20-
echo "done"
2120

22-
echo "installing ant"
23-
asdf install ant latest
24-
echo "done"
21+
# Install the relevant build tool that you need.
22+
# echo "adding asdf ant plugin"
23+
# asdf plugin add ant
24+
# echo "done"
2525

26-
echo "set latest version of ant to system wide version"
27-
asdf global ant latest
28-
echo "done"
26+
# echo "installing ant"
27+
# asdf install ant latest
28+
# echo "done"
2929

30-
echo "adding asdf maven plugin"
31-
asdf plugin add maven
32-
echo "done"
30+
# echo "set latest version of ant to system wide version"
31+
# asdf set ant latest
32+
# echo "done"
3333

34-
echo "installing maven"
35-
asdf install maven latest
36-
echo "done"
34+
# echo "adding asdf maven plugin"
35+
# asdf plugin add maven
36+
# echo "done"
3737

38-
echo "set latest version of maven to system wide version"
39-
asdf global maven latest
40-
echo "done"
38+
# echo "installing maven"
39+
# asdf install maven latest
40+
# echo "done"
41+
42+
# echo "set latest version of maven to system wide version"
43+
# asdf set maven latest
44+
# echo "done"
4145

46+
GRADLE_VERSION=8.13
4247

4348
echo "adding asdf gradle plugin"
4449
asdf plugin add gradle
4550
echo "done"
4651

4752
echo "installing gradle"
48-
asdf install gradle latest
53+
asdf install gradle $GRADLE_VERSION
4954
echo "done"
5055

5156
echo "set latest version of gradle to system wide version"
52-
asdf global gradle latest
57+
asdf set gradle $GRADLE_VERSION
5358
echo "done"

0 commit comments

Comments
 (0)