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

Add new and pre-release Java builds #600

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions packages/java/20.0.1/build.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions packages/java/20.0.1/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/java/20.0.1/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "java",
"version": "20.0.1",
"aliases": []
}
7 changes: 7 additions & 0 deletions packages/java/20.0.1/run
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions packages/java/20.0.1/test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("OK");
}
}
9 changes: 9 additions & 0 deletions packages/java/20.valhalla.20.75/build.sh
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions packages/java/20.valhalla.20.75/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/java/20.valhalla.20.75/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "java",
"version": "20.valhalla.20.75",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how semver compliant this version number is

"aliases": []
}
7 changes: 7 additions & 0 deletions packages/java/20.valhalla.20.75/run
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions packages/java/20.valhalla.20.75/test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("OK");
}
}
9 changes: 9 additions & 0 deletions packages/java/21.ea.22/build.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions packages/java/21.ea.22/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/java/21.ea.22/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "java",
"version": "21.ea.22",
"aliases": []
}
7 changes: 7 additions & 0 deletions packages/java/21.ea.22/run
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions packages/java/21.ea.22/test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Main {
public static void main(String[] args) {
System.out.println("OK");
}
}