improve hibernate-core-jakarta build

This commit is contained in:
Steve Ebersole 2021-10-21 14:15:57 -05:00
parent e4b56b9271
commit 85cd748de5
1 changed files with 10 additions and 1 deletions

View File

@ -118,7 +118,7 @@ task transformJar {
mustRunAfter project(':hibernate-core').tasks.jar
inputs.file project(':hibernate-core').tasks.jar.archiveFile
outputs.file "${buildDir}/libs/${transformedJarName}"
outputs.file tasks.jar.archiveFile.get().asFile
doLast {
def transformerArgs = [
@ -141,6 +141,15 @@ task transformJar {
}
}
configurations {
[apiElements, runtimeElements].each {
it.outgoing.artifacts.removeIf {
it.buildDependencies.getDependencies(null).contains(jar)
}
it.outgoing.artifact(tasks.jar.archiveFile.get().asFile)
}
}
task unpackTestJar(type: Copy) {
description 'Unpacks the hibernate-core test jar into a directory so we can transform it and replace token(s) in the test resources'