Skip to content

Commit 5f463c0

Browse files
authored
Fix java 14 url to point to always existing version (#960)
* Fix java 14 url to point to always existing version * Fix jpackage build
1 parent 6f2a252 commit 5f463c0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- script: |
2323
$ProgressPreference = 'SilentlyContinue'
2424
mkdir build
25-
wget "https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-64_linux-x64_bin.tar.gz" -O "build/jdk-14.tar.gz"
25+
wget "https://first.wpi.edu/FRC/roborio/jpackage/openjdk-14-ea+28_linux-x64_bin.tar.gz" -O "build/jdk-14.tar.gz"
2626
sudo mkdir /opt/java
2727
sudo tar -xzvf build/jdk-14.tar.gz -C /opt/java
2828
displayName: 'Download JDK 14'
@@ -76,7 +76,7 @@ jobs:
7676
displayName: 'Download JDK'
7777
- powershell: |
7878
$ProgressPreference = 'SilentlyContinue'
79-
wget "https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-64_windows-x64_bin.zip" -O "build\jdk-14.zip"
79+
wget "https://first.wpi.edu/FRC/roborio/jpackage/openjdk-14-ea+28_windows-x64_bin.zip" -O "build\jdk-14.zip"
8080
Expand-Archive build\jdk-14.zip -DestinationPath build
8181
displayName: 'Download JDK 14'
8282
- task: JavaToolInstaller@0
@@ -90,7 +90,6 @@ jobs:
9090
workingDirectory: ''
9191
gradleWrapperFile: 'gradlew'
9292
gradleOptions: '-Xmx3072m'
93-
jdkVersionOption: '1.11'
9493
jdkArchitectureOption: 'x64'
9594
publishJUnitResults: true
9695
tasks: 'check :ui:jpackage -Pheadless=true -Pgeneration -PlogTests -PskipUITests -Pjdk14=..\build\jdk-14 --stacktrace'
@@ -130,7 +129,7 @@ jobs:
130129
displayName: 'Download JDK'
131130
- powershell: |
132131
$ProgressPreference = 'SilentlyContinue'
133-
wget "https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-64_windows-x64_bin.zip" -O "build\jdk-14.zip"
132+
wget "https://first.wpi.edu/FRC/roborio/jpackage/openjdk-14-ea+28_windows-x64_bin.zip" -O "build\jdk-14.zip"
134133
Expand-Archive build\jdk-14.zip -DestinationPath build
135134
displayName: 'Download JDK 14'
136135
- task: JavaToolInstaller@0
@@ -173,7 +172,7 @@ jobs:
173172
- script: |
174173
mkdir build
175174
wget "https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz" -O "build/jdk.tar.gz"
176-
wget "https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-64_osx-x64_bin.tar.gz" -O "build/jdk-14.tar.gz"
175+
wget "https://first.wpi.edu/FRC/roborio/jpackage/openjdk-14-ea+28_osx-x64_bin.tar.gz" -O "build/jdk-14.tar.gz"
177176
sudo tar xzvf build/jdk-14.tar.gz -C /Library/Java/JavaVirtualMachines/
178177
sudo tar xvzf build/jdk.tar.gz -C /Library/Java/JavaVirtualMachines/
179178
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/

buildSrc/src/main/kotlin/JpackageExec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ open class JpackageExec : DefaultTask() {
234234
fileAssociations.ifPresent { propsFile ->
235235
args.addAll("--file-associations", propsFile.asFile.absolutePath)
236236
}
237-
args.addAll("--package-type", installerType.get())
237+
args.addAll("--type", installerType.get())
238238

239239
when (OperatingSystem.current()) {
240240
OperatingSystem.WINDOWS -> {

0 commit comments

Comments
 (0)