improve hibernate-core-jakarta build
This commit is contained in:
parent
e4b56b9271
commit
85cd748de5
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue