2021-04-22 12:15:45 -04:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
|
|
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
|
|
|
*/
|
2021-06-26 09:46:09 -04:00
|
|
|
import org.hibernate.orm.jakarta.JakartaJarTransformation
|
2021-04-22 12:15:45 -04:00
|
|
|
|
|
|
|
description = 'Wildfly Transaction Client transformed to be JTA 2.0 compatible'
|
|
|
|
|
2021-04-23 06:07:20 -04:00
|
|
|
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
|
|
|
|
|
|
|
|
tasks.withType(PublishToMavenRepository) {
|
|
|
|
onlyIf {
|
2021-05-06 01:16:32 -04:00
|
|
|
repository.name == "MavenLocal"
|
2021-04-23 06:07:20 -04:00
|
|
|
}
|
|
|
|
}
|
2021-04-22 12:15:45 -04:00
|
|
|
|
|
|
|
configurations {
|
2021-06-26 09:46:09 -04:00
|
|
|
wildFlyTxnClient {
|
|
|
|
description = 'Used to access the WildFly transaction client jar to be able to transform it'
|
|
|
|
}
|
2021-04-22 12:15:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-26 09:46:09 -04:00
|
|
|
api libraries.jakarta_jta
|
2021-04-22 12:15:45 -04:00
|
|
|
|
2021-06-26 09:46:09 -04:00
|
|
|
wildFlyTxnClient( libraries.wildfly_transaction_client ) {
|
|
|
|
transitive = false;
|
2021-04-22 12:15:45 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-26 09:46:09 -04:00
|
|
|
tasks.compileJava.enabled = false
|
|
|
|
tasks.processResources.enabled = false
|
|
|
|
tasks.compileTestJava.enabled = false
|
|
|
|
tasks.processTestResources.enabled = false
|
|
|
|
tasks.test.enabled = false
|
|
|
|
tasks.jar.enabled = false
|
2021-04-22 12:15:45 -04:00
|
|
|
|
2021-06-26 09:46:09 -04:00
|
|
|
task jakartafyDependency(type: JakartaJarTransformation) {
|
2021-07-19 10:42:21 -04:00
|
|
|
sourceJar = project.provider({
|
|
|
|
project.configurations.wildFlyTxnClient.resolvedConfiguration.resolvedArtifacts.find().file
|
|
|
|
})
|
|
|
|
|
2021-06-26 09:46:09 -04:00
|
|
|
targetJar = tasks.jar.archiveFile
|
2021-04-22 12:15:45 -04:00
|
|
|
}
|