Skip to content

Commit 27d5537

Browse files
committed
Make cli and tooling-core compatible with Java 17
1 parent b1e9c67 commit 27d5537

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.github/actions/run-gradle/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
id: setup-gradle-jdk
1313
with:
1414
distribution: temurin
15-
java-version: 21
15+
java-version: 17
1616
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1717
with:
1818
node-version-file: html-report/.tool-versions

buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
22

33
plugins {
44
`kotlin-dsl`
@@ -16,10 +16,10 @@ dependencies {
1616

1717
tasks {
1818
compileKotlin {
19-
compilerOptions.jvmTarget = JVM_21
19+
compilerOptions.jvmTarget = JVM_17
2020
}
2121
compileJava {
22-
options.release.convention(21)
22+
options.release.convention(17)
2323
}
2424
}
2525

buildSrc/src/main/kotlin/java-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ base {
1313
}
1414

1515
java {
16-
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
16+
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1717
withSourcesJar()
1818
withJavadocJar()
1919
}
@@ -82,7 +82,7 @@ tasks {
8282
options.javaModuleVersion.convention(provider { project.version.toString() })
8383
}
8484
compileTestJava {
85-
options.release.convention(21)
85+
options.release.convention(17)
8686
}
8787
val moduleName = "org.opentest4j.reporting.${project.name.replace('-', '.')}"
8888
val compileModule by registering(JavaCompile::class) {

cli/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ val mainClass = "org.opentest4j.reporting.cli.ReportingCli"
1515

1616
tasks {
1717
compileJava {
18-
options.release = 21
18+
options.release = 17
1919
}
2020
jar {
2121
doLast(objects.newInstance(UpdateJarAction::class).apply {

documentation/component-diagram.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ skinparam {
55
}
66

77
package org.opentest4j.reporting {
8-
frame "Java 21+" {
8+
frame "Java 17+" {
99
[open-test-reporting-cli] as cli
1010
[open-test-reporting-tooling-core] as tooling_core
1111
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#This file is generated by updateDaemonJvm
2-
toolchainVersion=21
2+
toolchainVersion=17

sample-project/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val htmlReportFile = tasks.test.flatMap { it.reports.junitXml.outputLocation.fil
3333

3434
tasks {
3535
compileTestJava {
36-
options.release = 21
36+
options.release = 17
3737
modularity.inferModulePath = true
3838
}
3939

tooling-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
}
2424

2525
tasks.compileJava {
26-
options.release = 21
26+
options.release = 17
2727
}
2828

2929
val playwrightInstallationAction = objects.newInstance(InstallPlaywrightDeps::class).apply {

0 commit comments

Comments
 (0)