Skip to content

Commit

Permalink
Open java.base/java.lang for ALL-UNNAMED
Browse files Browse the repository at this point in the history
Since jacoco 0.8.9 it does not open the java.lang package anymore,
so we need to do that on our own.

See "Agent should not open java.lang package to unnamed module of the application class loader"

jacoco/jacoco#1334
  • Loading branch information
AndreasTu committed Aug 9, 2023
1 parent 298eace commit fa7eefb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ subprojects {
//Required for building on Travis' container-based infrastructure to not be killed with
//'exit code 137' - https://github.com/travis-ci/travis-ci/issues/5582
jvmArgs '-Xmx512m'
jvmArgs(
//Required since jacoco does not do that anymore: Agent should not open java.lang package to unnamed module of the application class loader (https://github.com/jacoco/jacoco/pull/1334).
"--add-opens=java.base/java.lang=ALL-UNNAMED"
)
}

tasks.register("allDependencyInsight", DependencyInsightReportTask) {}
Expand Down

0 comments on commit fa7eefb

Please sign in to comment.