2015-05-19 00:23:35 -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>.
|
|
|
|
*/
|
2024-02-24 14:45:38 -05:00
|
|
|
description = 'Hibernate compile-time tooling'
|
2020-04-06 13:21:11 -04:00
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
|
2013-10-25 15:27:45 -04:00
|
|
|
apply plugin: 'version-injection'
|
|
|
|
|
2023-11-07 12:38:20 -05:00
|
|
|
java {
|
2023-11-17 14:18:04 -05:00
|
|
|
sourceCompatibility = jdks.versions.baseline.get()
|
|
|
|
targetCompatibility = sourceCompatibility
|
2013-10-25 15:27:45 -04:00
|
|
|
}
|
|
|
|
|
2024-02-26 09:33:13 -05:00
|
|
|
sourceSets {
|
|
|
|
quarkusOrmPanache {
|
|
|
|
java {
|
|
|
|
srcDirs = ['src/quarkusOrmPanache/java']
|
|
|
|
}
|
|
|
|
resources {
|
2024-05-30 08:23:38 -04:00
|
|
|
srcDirs sourceSets.main.resources
|
2024-02-26 09:33:13 -05:00
|
|
|
}
|
|
|
|
compileClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
}
|
|
|
|
quarkusHrPanache {
|
|
|
|
java {
|
|
|
|
srcDirs = ['src/quarkusHrPanache/java']
|
|
|
|
}
|
|
|
|
resources {
|
2024-05-30 08:23:38 -04:00
|
|
|
srcDirs sourceSets.main.resources
|
2024-02-26 09:33:13 -05:00
|
|
|
}
|
|
|
|
compileClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
}
|
2024-03-01 14:04:13 -05:00
|
|
|
jakartaData {
|
|
|
|
java {
|
|
|
|
srcDirs = ['src/jakartaData/java']
|
|
|
|
}
|
|
|
|
resources {
|
2024-05-30 08:23:38 -04:00
|
|
|
srcDirs sourceSets.main.resources
|
2024-03-01 14:04:13 -05:00
|
|
|
}
|
|
|
|
compileClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
|
|
|
|
}
|
2024-02-28 09:29:25 -05:00
|
|
|
}
|
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
dependencies {
|
2023-11-17 14:11:24 -05:00
|
|
|
// api - ewww... but Maven needs them this way
|
|
|
|
api project( ':hibernate-core' )
|
2024-03-24 06:40:16 -04:00
|
|
|
api libs.hcann
|
|
|
|
api libs.jandex
|
2023-11-16 06:54:58 -05:00
|
|
|
api jakartaLibs.jaxbApi
|
|
|
|
api jakartaLibs.jaxb
|
|
|
|
api jakartaLibs.validation
|
|
|
|
api jakartaLibs.annotation
|
|
|
|
api libs.antlrRuntime
|
|
|
|
api libs.byteBuddy
|
2024-03-24 06:40:16 -04:00
|
|
|
api libs.logging
|
2018-10-15 04:55:56 -04:00
|
|
|
|
2024-02-26 09:33:13 -05:00
|
|
|
quarkusOrmPanacheImplementation "io.quarkus:quarkus-hibernate-orm-panache:3.6.2"
|
|
|
|
quarkusHrPanacheImplementation "io.quarkus:quarkus-hibernate-reactive-panache:3.6.2"
|
2024-06-12 04:40:19 -04:00
|
|
|
jakartaDataImplementation "jakarta.data:jakarta.data-api:1.0.0"
|
2024-03-25 09:41:55 -04:00
|
|
|
jakartaDataImplementation "org.hibernate.reactive:hibernate-reactive-core:2.2.2.Final"
|
2024-04-18 09:43:27 -04:00
|
|
|
jakartaDataImplementation "io.quarkus:quarkus-hibernate-orm-panache:3.6.2"
|
2024-02-26 09:33:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// The source set gets a custom configuration which extends the normal test implementation config
|
|
|
|
configurations {
|
|
|
|
quarkusOrmPanacheImplementation.extendsFrom(testImplementation)
|
|
|
|
quarkusOrmPanacheRuntimeOnly.extendsFrom(testRuntimeOnly)
|
|
|
|
quarkusOrmPanacheCompileOnly.extendsFrom(testCompileOnly)
|
|
|
|
quarkusHrPanacheImplementation.extendsFrom(testImplementation)
|
|
|
|
quarkusHrPanacheRuntimeOnly.extendsFrom(testRuntimeOnly)
|
|
|
|
quarkusHrPanacheCompileOnly.extendsFrom(testCompileOnly)
|
2024-03-01 14:04:13 -05:00
|
|
|
jakartaDataImplementation.extendsFrom(testImplementation)
|
|
|
|
jakartaDataRuntimeOnly.extendsFrom(testRuntimeOnly)
|
|
|
|
jakartaDataCompileOnly.extendsFrom(testCompileOnly)
|
2024-02-28 09:29:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
def quarkusOrmPanacheTestTask = tasks.register( 'quarkusOrmPanacheTest', Test ) {
|
|
|
|
description = 'Runs the Quarkus ORM Panache tests.'
|
|
|
|
group = 'verification'
|
|
|
|
|
2024-02-26 09:33:13 -05:00
|
|
|
testClassesDirs = sourceSets.quarkusOrmPanache.output.classesDirs
|
|
|
|
classpath = sourceSets.quarkusOrmPanache.runtimeClasspath
|
2024-02-28 09:29:25 -05:00
|
|
|
shouldRunAfter test
|
|
|
|
}
|
|
|
|
|
|
|
|
def quarkusHrPanacheTestTask = tasks.register( 'quarkusHrPanacheTest', Test ) {
|
|
|
|
description = 'Runs the Quarkus HR Panache tests.'
|
|
|
|
group = 'verification'
|
|
|
|
|
2024-02-26 09:33:13 -05:00
|
|
|
testClassesDirs = sourceSets.quarkusHrPanache.output.classesDirs
|
|
|
|
classpath = sourceSets.quarkusHrPanache.runtimeClasspath
|
2024-02-28 09:29:25 -05:00
|
|
|
shouldRunAfter test
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
|
|
|
|
2024-03-01 14:04:13 -05:00
|
|
|
def jakartaDataTestTask = tasks.register( 'jakartaDataTest', Test ) {
|
|
|
|
description = 'Runs the Jakarta Data tests.'
|
|
|
|
group = 'verification'
|
|
|
|
|
|
|
|
testClassesDirs = sourceSets.jakartaData.output.classesDirs
|
|
|
|
classpath = sourceSets.jakartaData.runtimeClasspath
|
|
|
|
shouldRunAfter test
|
|
|
|
}
|
|
|
|
|
2024-02-28 09:29:25 -05:00
|
|
|
check.dependsOn quarkusHrPanacheTestTask
|
|
|
|
check.dependsOn quarkusOrmPanacheTestTask
|
2024-02-29 05:55:14 -05:00
|
|
|
test.dependsOn quarkusHrPanacheTestTask
|
|
|
|
test.dependsOn quarkusOrmPanacheTestTask
|
2024-02-28 09:29:25 -05:00
|
|
|
|
2023-08-03 09:38:03 -04:00
|
|
|
tasks.sourcesJar.dependsOn ':hibernate-core:generateHqlParser'
|
2024-03-12 10:24:34 -04:00
|
|
|
tasks.sourcesJar.dependsOn ':hibernate-core:generateSqlScriptParser'
|
|
|
|
|
|
|
|
compileTestJava {
|
|
|
|
options.compilerArgs += [
|
|
|
|
"-proc:none",
|
|
|
|
"-AsuppressJakartaDataMetamodel=true"
|
|
|
|
]
|
2024-03-19 08:16:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
// relocation for the published artifacts based on the old groupId
|
|
|
|
relocationPom(MavenPublication) {
|
|
|
|
pom {
|
|
|
|
name = 'hibernate-jpamodelgen - relocation'
|
|
|
|
groupId = 'org.hibernate.orm'
|
|
|
|
artifactId = 'hibernate-jpamodelgen'
|
|
|
|
version = project.version
|
|
|
|
|
|
|
|
description = project.description
|
|
|
|
url = 'https://hibernate.org/orm'
|
|
|
|
|
|
|
|
organization {
|
|
|
|
name = 'Hibernate.org'
|
|
|
|
url = 'https://hibernate.org'
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = 'GNU Library General Public License v2.1 or later'
|
|
|
|
url = 'https://www.opensource.org/licenses/LGPL-2.1'
|
|
|
|
comments = 'See discussion at https://hibernate.org/community/license/ for more details.'
|
|
|
|
distribution = 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scm {
|
|
|
|
url = 'https://github.com/hibernate/hibernate-orm'
|
|
|
|
connection = 'scm:git:https://github.com/hibernate/hibernate-orm.git'
|
|
|
|
developerConnection = 'scm:git:git@github.com:hibernate/hibernate-orm.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = 'hibernate-team'
|
|
|
|
name = 'The Hibernate Development Team'
|
|
|
|
organization = 'Hibernate.org'
|
|
|
|
organizationUrl = 'https://hibernate.org'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
issueManagement {
|
|
|
|
system = 'jira'
|
|
|
|
url = 'https://hibernate.atlassian.net/browse/HHH'
|
|
|
|
}
|
|
|
|
|
|
|
|
distributionManagement {
|
|
|
|
relocation {
|
|
|
|
groupId = 'org.hibernate.orm'
|
|
|
|
artifactId = project.name
|
|
|
|
version = project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-12 10:24:34 -04:00
|
|
|
}
|