Compare commits

...

5 Commits

Author SHA1 Message Date
Ethan McCue 56677ca021
Merge ebf8fc7735 into 59338eee33 2024-08-02 20:33:29 +12:00
Ethan McCue ebf8fc7735 Move to . seperators to not confuse the rest of the scripts 2023-05-17 22:38:38 -04:00
Ethan McCue 132f21cf74 Enable preview for valhalla build 2023-05-16 00:43:16 -04:00
Ethan McCue a8e3935746 Use simpler main! 2023-05-16 00:39:36 -04:00
Ethan McCue 4c739965c2 Add java 21+ support 2023-05-16 00:21:53 -04:00
15 changed files with 90 additions and 0 deletions

9
packages/java/20.0.1/build.sh vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
curl "https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

4
packages/java/20.0.1/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

5
packages/java/20.0.1/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "java",
"version": "20.0.1",
"aliases": []
}

7
packages/java/20.0.1/run vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
mv $1 $1.java
filename=$1.java
shift
java $filename "$@"

5
packages/java/20.0.1/test.java vendored Normal file
View File

@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("OK");
}
}

9
packages/java/20.valhalla.20.75/build.sh vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
curl "https://download.java.net/java/early_access/valhalla/20/openjdk-20-valhalla+20-75_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

View File

@ -0,0 +1,5 @@
{
"language": "java",
"version": "20.valhalla.20.75",
"aliases": []
}

7
packages/java/20.valhalla.20.75/run vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
mv $1 $1.java
filename=$1.java
shift
java --enable-preview $filename "$@"

View File

@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("OK");
}
}

9
packages/java/21.ea.22/build.sh vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
curl "https://download.java.net/java/early_access/jdk21/22/GPL/openjdk-21-ea+22_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

4
packages/java/21.ea.22/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

5
packages/java/21.ea.22/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "java",
"version": "21.ea.22",
"aliases": []
}

7
packages/java/21.ea.22/run vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
mv $1 $1.java
filename=$1.java
shift
java --enable-preview $filename "$@"

5
packages/java/21.ea.22/test.java vendored Normal file
View File

@ -0,0 +1,5 @@
class Main {
public static void main(String[] args) {
System.out.println("OK");
}
}