Skip to content

Commit

Permalink
Fix CI build for different jdk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Feb 28, 2024
1 parent d012312 commit ad2fe32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.pkl
Expand Up @@ -97,11 +97,11 @@ local buildNativeJobs: Mapping<String, BuildNativeJob> = new {

local gradleCheckJobs: Mapping<String, GradleCheckJob> = new {
["gradle-check-jdk11"] {
javaVersion = "11"
javaVersion = "11.0"
isRelease = false
}
["gradle-check-jdk17"] {
javaVersion = "17"
javaVersion = "17.0"
isRelease = false
}
}
Expand Down
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -583,7 +583,7 @@ jobs:
steps:
- checkout
- run:
command: ./gradlew --info --stacktrace check
command: ./gradlew --info --stacktrace check -PPKL_JVM_VERSION=11
name: gradle check
- run:
command: |-
Expand All @@ -601,7 +601,7 @@ jobs:
steps:
- checkout
- run:
command: ./gradlew --info --stacktrace check
command: ./gradlew --info --stacktrace check -PPKL_JVM_VERSION=17
name: gradle check
- run:
command: |-
Expand Down
4 changes: 2 additions & 2 deletions .circleci/jobs/GradleCheckJob.pkl
Expand Up @@ -17,12 +17,12 @@ extends "GradleJob.pkl"

import "package://pkg.pkl-lang.org/pkl-pantry/com.circleci.v2@1.0.0#/Config.pkl"

javaVersion: "11"|"17"
javaVersion: "11.0"|"17.0"

steps {
new Config.RunStep {
name = "gradle check"
command = "./gradlew \(module.gradleArgs) check -PPKL_JVM_VERSION=\(javaVersion)"
command = "./gradlew \(module.gradleArgs) check -PPKL_JVM_VERSION=\(javaVersion.dropLast(2))"
}
}

Expand Down

0 comments on commit ad2fe32

Please sign in to comment.