mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 13:14:50 +00:00
172ddf8700
Preparation for moving to Gradle 7.0 - Improve Jakarta transformation handling (tests are also actually run now as a bonus); - Improved CacheableHbmXmlTest to not write "ser" file to `${buildDir}/resources/test` - Improved DatabaseService(Plugin) - Update a number of plugins which did not handle up-to-date-ness properly
52 lines
1.3 KiB
Groovy
52 lines
1.3 KiB
Groovy
|
|
/*
|
|
* 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
|
|
*/
|
|
apply from: rootProject.file( 'gradle/java-module.gradle' )
|
|
apply from: rootProject.file( 'gradle/publishing-pom.gradle' )
|
|
|
|
configurations {
|
|
jakartaeeTransformTool {
|
|
description = 'JakartaTransformer tool dependencies'
|
|
}
|
|
tests {
|
|
description = 'Configuration for the produced test jar'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
jakartaeeTransformTool 'org.eclipse.transformer:org.eclipse.transformer:0.2.0'
|
|
jakartaeeTransformTool 'org.eclipse.transformer:org.eclipse.transformer.cli:0.2.0'
|
|
}
|
|
|
|
tasks.withType( Test ) { test ->
|
|
test.usesService( project.gradle.sharedServices.registrations.getByName( 'databaseService' ).service )
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
publishedArtifacts {
|
|
from components.java
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Release / publishing tasks
|
|
|
|
task ciBuild( dependsOn: [test, publish] )
|
|
|
|
task release(dependsOn: [test, publishToSonatype])
|
|
publishToSonatype.mustRunAfter test
|
|
|
|
|