Skip to content

Commit

Permalink
Update toolchain logic
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker committed Dec 9, 2024
1 parent 608ab4b commit 616d6f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
run: git config --system core.longpaths true

- name: Integration tests
if: matrix.java == 17
run: ./gradlew integ -Plog-tests --stacktrace

- uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/smithy.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ val licenseSpec = copySpec {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
setSourceCompatibility(8)
setTargetCompatibility(8)
}
}

Expand Down
1 change: 1 addition & 0 deletions smithy-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ runtime {

// This is needed to ensure that jlink is available (jlink is Java 9+), we should use the JDK that
// is configured for the runtime
// NOTE: For the runtime task, you *must* have the right JDK set up in your environment (17 at the time of writing)
javaHome = javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(imageJreVersion))
}.map { it.metadata.installationPath.asFile.path }
Expand Down

0 comments on commit 616d6f8

Please sign in to comment.