Skip to content

Commit 55beb75

Browse files
committed
Temporarily add org.immutables:value-annotations to compile module path
To avoid "unknown enum constant" warnings
1 parent e62116e commit 55beb75

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ errorProne-core = { module = "com.google.errorprone:error_prone_core", version =
3939
groovy4 = { module = "org.apache.groovy:groovy", version = "4.0.26" }
4040
groovy2-bom = { module = "org.codehaus.groovy:groovy-bom", version = "2.5.23" }
4141
hamcrest = { module = "org.hamcrest:hamcrest", version = "3.0" }
42+
immutables-valueAnnotations = { module = "org.immutables:value-annotations", version = "2.10.1" }
4243
jackson-dataformat-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml", version.ref = "jackson" }
4344
jackson-module-kotlin = { module = "com.fasterxml.jackson.module:jackson-module-kotlin", version.ref = "jackson" }
4445
jfrPolyfill = { module = "org.gradle.jfr.polyfill:jfr-polyfill", version = "1.0.2" }

junit-platform-reporting/junit-platform-reporting.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ dependencies {
1414

1515
compileOnlyApi(libs.apiguardian)
1616
compileOnlyApi(libs.openTestReporting.tooling.spi)
17+
compileOnly(libs.immutables.valueAnnotations) {
18+
because("package-info references enum")
19+
}
1720

1821
shadowed(libs.openTestReporting.events)
1922

@@ -38,7 +41,9 @@ tasks {
3841
compileJava {
3942
options.compilerArgs.addAll(listOf(
4043
"--add-modules", "org.opentest4j.reporting.events",
41-
"--add-reads", "${javaModuleName}=org.opentest4j.reporting.events"
44+
"--add-reads", "${javaModuleName}=org.opentest4j.reporting.events",
45+
"--add-modules", "org.immutables.value.annotations",
46+
"--add-reads", "org.opentest4j.reporting.tooling.spi=org.immutables.value.annotations",
4247
))
4348
}
4449
javadoc {

0 commit comments

Comments
 (0)