Update Java versions and remove Java 18 build

This commit is contained in:
Brian Clozel 2023-01-19 09:40:25 +01:00
parent 2fe75c1a24
commit e725e3a51b
5 changed files with 8 additions and 48 deletions

View File

@ -6,7 +6,6 @@ RUN ./setup.sh
ENV JAVA_HOME /opt/openjdk/java17 ENV JAVA_HOME /opt/openjdk/java17
ENV JDK17 /opt/openjdk/java17 ENV JDK17 /opt/openjdk/java17
ENV JDK18 /opt/openjdk/java18
ENV JDK19 /opt/openjdk/java19 ENV JDK19 /opt/openjdk/java19
ENV PATH $JAVA_HOME/bin:$PATH ENV PATH $JAVA_HOME/bin:$PATH

View File

@ -3,13 +3,10 @@ set -e
case "$1" in case "$1" in
java17) java17)
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.5+8/bellsoft-jdk17.0.5+8-linux-amd64.tar.gz" echo "https://github.com/bell-sw/Liberica/releases/download/17.0.6+10/bellsoft-jdk17.0.6+10-linux-amd64.tar.gz"
;;
java18)
echo "https://github.com/bell-sw/Liberica/releases/download/18.0.2.1%2B1/bellsoft-jdk18.0.2.1+1-linux-amd64.tar.gz"
;; ;;
java19) java19)
echo "https://github.com/bell-sw/Liberica/releases/download/19.0.1%2B11/bellsoft-jdk19.0.1+11-linux-amd64.tar.gz" echo "https://github.com/bell-sw/Liberica/releases/download/19.0.2+9/bellsoft-jdk19.0.2+9-linux-amd64.tar.gz"
;; ;;
*) *)
echo $"Unknown java version" echo $"Unknown java version"

View File

@ -125,14 +125,6 @@ resources:
access_token: ((github-ci-status-token)) access_token: ((github-ci-status-token))
branch: ((branch)) branch: ((branch))
context: build context: build
- name: repo-status-jdk18-build
type: github-status-resource
icon: eye-check-outline
source:
repository: ((github-repo-name))
access_token: ((github-ci-status-token))
branch: ((branch))
context: jdk18-build
- name: repo-status-jdk19-build - name: repo-status-jdk19-build
type: github-status-resource type: github-status-resource
icon: eye-check-outline icon: eye-check-outline
@ -237,34 +229,6 @@ jobs:
"zip.type": "schema" "zip.type": "schema"
get_params: get_params:
threads: 8 threads: 8
- name: jdk18-build
serial: true
public: true
plan:
- get: ci-image
- get: git-repo
- get: every-morning
trigger: true
- put: repo-status-jdk18-build
params: { state: "pending", commit: "git-repo" }
- do:
- task: check-project
image: ci-image
file: git-repo/ci/tasks/check-project.yml
privileged: true
timeout: ((task-timeout))
params:
TEST_TOOLCHAIN: 18
<<: *build-project-task-params
on_failure:
do:
- put: repo-status-jdk18-build
params: { state: "failure", commit: "git-repo" }
- put: slack-alert
params:
<<: *slack-fail-params
- put: repo-status-jdk18-build
params: { state: "success", commit: "git-repo" }
- name: jdk19-build - name: jdk19-build
serial: true serial: true
public: true public: true
@ -471,7 +435,7 @@ jobs:
groups: groups:
- name: "builds" - name: "builds"
jobs: ["build", "jdk18-build", "jdk19-build"] jobs: ["build", "jdk19-build"]
- name: "releases" - name: "releases"
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "create-github-release"] jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "create-github-release"]
- name: "ci-images" - name: "ci-images"

View File

@ -4,6 +4,6 @@ set -e
source $(dirname $0)/common.sh source $(dirname $0)/common.sh
pushd git-repo > /dev/null pushd git-repo > /dev/null
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Porg.gradle.java.installations.fromEnv=JDK17,JDK18 \ ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Porg.gradle.java.installations.fromEnv=JDK17,JDK19 \
-PmainToolchain=${MAIN_TOOLCHAIN} -PtestToolchain=${TEST_TOOLCHAIN} --no-daemon --max-workers=4 check -PmainToolchain=${MAIN_TOOLCHAIN} -PtestToolchain=${TEST_TOOLCHAIN} --no-daemon --max-workers=4 check
popd > /dev/null popd > /dev/null

View File

@ -5,10 +5,10 @@
* One can choose the toolchain to use for compiling the MAIN sources and/or compiling * One can choose the toolchain to use for compiling the MAIN sources and/or compiling
* and running the TEST sources. These options apply to Java, Kotlin and Groovy sources * and running the TEST sources. These options apply to Java, Kotlin and Groovy sources
* when available. * when available.
* {@code "./gradlew check -PmainToolchain=17 -PtestToolchain=18"} will use: * {@code "./gradlew check -PmainToolchain=17 -PtestToolchain=19"} will use:
* <ul> * <ul>
* <li>a JDK17 toolchain for compiling the main SourceSet * <li>a JDK17 toolchain for compiling the main SourceSet
* <li>a JDK18 toolchain for compiling and running the test SourceSet * <li>a JDK19 toolchain for compiling and running the test SourceSet
* </ul> * </ul>
* *
* By default, the build will fall back to using the current JDK and 17 language level for all sourceSets. * By default, the build will fall back to using the current JDK and 17 language level for all sourceSets.
@ -23,9 +23,9 @@
* {@code * {@code
* $ echo JDK17 * $ echo JDK17
* /opt/openjdk/java17 * /opt/openjdk/java17
* $ echo JDK18 * $ echo JDK19
* /opt/openjdk/java18 * /opt/openjdk/java18
* $ ./gradlew -Porg.gradle.java.installations.fromEnv=JDK17,JDK18 check * $ ./gradlew -Porg.gradle.java.installations.fromEnv=JDK17,JDK19 check
* } * }
* *
* @author Brian Clozel * @author Brian Clozel