Skip to content

Commit 58cc873

Browse files
committed
HHH-19673 Do not run Jacoco in hibernate-gradle-plugin
It's incompatible with TestKit: https://docs.gradle.org/8.14.3/userguide/configuration_cache.html#config_cache:not_yet_implemented:testkit_build_with_java_agent
1 parent c6d045b commit 58cc873

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

local-build-plugins/src/main/groovy/local.java-module.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ def jpaVersion = ormBuildDetails.jpaVersion
2626
def java9ModuleNameBase = project.name.startsWith( 'hibernate-' ) ? name.drop( 'hibernate-'.length() ): name
2727
def java9ModuleName = "org.hibernate.orm.$java9ModuleNameBase".replace('-','.')
2828

29-
def skipJacoco = project.hasProperty('skipJacoco') ? project.getProperty('skipJacoco').toBoolean() : false
30-
if (!skipJacoco) {
31-
plugins.apply('jacoco')
32-
}
33-
3429
sourceSets {
3530
test {
3631
resources {

local-build-plugins/src/main/groovy/local.publishing-java-module.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ plugins {
99
id "local.code-quality"
1010
}
1111

12+
// Ideally this should be in `local.java-module.gradle`, so that it's applied to hibernate-integrationtest-java-modules,
13+
// but we need to skip this in hibernate-gradle-plugin.
14+
def skipJacoco = project.hasProperty('skipJacoco') ? project.getProperty('skipJacoco').toBoolean() : false
15+
if (!skipJacoco) {
16+
plugins.apply('jacoco')
17+
}
18+
1219
configurations {
1320
javadocSources {
1421
description = "All Java sources for the project's Javadoc"

0 commit comments

Comments
 (0)