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

Testing java 20 #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '20'
distribution: 'temurin'
cache: maven
- name: Set up Node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '20'
distribution: 'temurin'
cache: maven
- name: Run Java tests
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>18</source>
<target>18</target>
<source>20</source>
<target>20</target>
<compilerArgs>
<arg>--add-exports</arg>
<arg>jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ if [ ! -e node_modules ]; then
fi

# Build standalone java
if [ ! -e jdks/linux/jdk-18 ]; then
if [ ! -e jdks/linux/jdk-20 ]; then
./scripts/download_linux_jdk.sh
fi
if [ ! -e jdks/windows/jdk-18 ]; then
if [ ! -e jdks/windows/jdk-20 ]; then
./scripts/download_windows_jdk.sh
fi
if [ ! -e dist/linux/bin/java ]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/download_linux_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -e
# Download linux jdk
mkdir -p jdks/linux
cd jdks/linux
curl https://download.java.net/java/GA/jdk18.0.1.1/65ae32619e2f40f3a9af3af1851d6e19/2/GPL/openjdk-18.0.1.1_linux-x64_bin.tar.gz > linux.tar.gz
curl https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_linux-aarch64_bin.tar.gz > linux.tar.gz
gunzip -c linux.tar.gz | tar xopf -
rm linux.tar.gz
mv jdk-18.0.1.1 jdk-18
mv jdk-20.0.1.1 jdk-20
cd ../..
4 changes: 2 additions & 2 deletions scripts/download_mac_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -e
# Download mac jdk
mkdir -p jdks/mac
cd jdks/mac
curl https://download.java.net/java/GA/jdk18.0.1.1/65ae32619e2f40f3a9af3af1851d6e19/2/GPL/openjdk-18.0.1.1_macos-x64_bin.tar.gz > mac.tar.gz
curl https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_macos-x64_bin.tar.gz > mac.tar.gz
gunzip -c mac.tar.gz | tar xopf -
rm mac.tar.gz
mv jdk-18.0.1.1.jdk jdk-18
mv jdk-20.0.1.1.jdk jdk-20
cd ../..
4 changes: 2 additions & 2 deletions scripts/download_windows_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -e
# Download windows jdk
mkdir -p jdks/windows
cd jdks/windows
curl https://download.java.net/java/GA/jdk18.0.1.1/65ae32619e2f40f3a9af3af1851d6e19/2/GPL/openjdk-18.0.1.1_windows-x64_bin.zip > windows.zip
curl https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_windows-x64_bin.zip > windows.zip
unzip windows.zip
rm windows.zip
mv jdk-18.0.1.1 jdk-18
mv jdk-20.0.1.1 jdk-20
cd ../..
2 changes: 1 addition & 1 deletion scripts/link_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Set env variables to build with mac toolchain but linux target
JAVA_HOME="./jdks/linux/jdk-18"
JAVA_HOME="./jdks/linux/jdk-20"

# Build in dist/linux
rm -rf dist/linux
Expand Down
2 changes: 1 addition & 1 deletion scripts/link_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Set env variables to build with mac toolchain but linux target
JAVA_HOME="./jdks/mac/jdk-18"
JAVA_HOME="./jdks/mac/jdk-20"

# Build using jlink
rm -rf dist/mac
Expand Down
2 changes: 1 addition & 1 deletion scripts/link_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Set env variables to build with mac toolchain but windows target
JAVA_HOME="./jdks/windows/jdk-18"
JAVA_HOME="./jdks/windows/jdk-20"

# Build in dist/windows
rm -rf dist/windows
Expand Down