Skip to content

Commit 0f585b2

Browse files
committedMar 16, 2025
Run Open Test Reporting CLI on module path
1 parent 118a6d4 commit 0f585b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎gradle/plugins/common/src/main/kotlin/junitbuild.testing-conventions.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var openTestReportingCliClasspath = configurations.resolvable("openTestReporting
2424

2525
val generateOpenTestHtmlReport by tasks.registering(JavaExec::class) {
2626
mustRunAfter(tasks.withType<Test>())
27-
mainClass.set("org.opentest4j.reporting.cli.ReportingCli")
27+
mainModule.set("org.opentest4j.reporting.cli")
28+
modularity.inferModulePath = true
2829
args("html-report")
2930
classpath(openTestReportingCliClasspath)
3031
argumentProviders += objects.newInstance(HtmlReportParameters::class).apply {

0 commit comments

Comments
 (0)