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>.
|
|
|
|
*/
|
2020-04-02 10:27:06 -04:00
|
|
|
|
2021-07-19 17:45:50 -04:00
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
maven {
|
|
|
|
name = 'localPluginRepository'
|
|
|
|
url = uri( "${gradle.gradleUserHomeDir}/tmp/plugins" )
|
|
|
|
}
|
|
|
|
}
|
2022-04-22 10:30:41 -04:00
|
|
|
|
|
|
|
includeBuild 'local-build-plugins'
|
2021-07-19 17:45:50 -04:00
|
|
|
}
|
|
|
|
|
2020-04-02 10:27:06 -04:00
|
|
|
plugins {
|
2022-04-22 19:40:06 -04:00
|
|
|
id 'org.hibernate.orm.build.env-settings'
|
2024-03-21 14:00:37 -04:00
|
|
|
id 'org.hibernate.orm.build.jdks-settings'
|
2024-07-29 01:38:04 -04:00
|
|
|
id 'com.gradle.develocity' version '3.17.6'
|
2024-06-17 01:59:05 -04:00
|
|
|
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
|
2020-04-02 10:27:06 -04:00
|
|
|
}
|
|
|
|
|
2022-03-15 10:39:07 -04:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
2023-10-09 09:27:12 -04:00
|
|
|
if ( rootProject.hasProperty( "mavenMirror" ) ) {
|
|
|
|
url( rootProject.property( "mavenMirror" ) )
|
|
|
|
}
|
2022-03-15 10:39:07 -04:00
|
|
|
mavenCentral()
|
2023-11-07 12:38:20 -05:00
|
|
|
if (System.getProperty('JPA_PREVIEW') != null) { // Needed for the RC versions of Jakarta Persistence
|
|
|
|
maven {
|
|
|
|
url "https://jakarta.oss.sonatype.org/content/repositories/releases/"
|
|
|
|
}
|
|
|
|
// Needed for the SNAPSHOT versions of Jakarta Persistence
|
|
|
|
maven {
|
|
|
|
url "https://jakarta.oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
|
|
|
}
|
2022-03-15 10:39:07 -04:00
|
|
|
|
|
|
|
//Allow loading additional dependencies from a local path;
|
|
|
|
//useful to load JDBC drivers which can not be distributed in public.
|
|
|
|
if (System.env['ADDITIONAL_REPO'] != null) {
|
|
|
|
flatDir {
|
|
|
|
dirs "${System.env.ADDITIONAL_REPO}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-22 19:40:06 -04:00
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
versionCatalogs {
|
2023-08-07 21:05:47 -04:00
|
|
|
jdks {
|
2023-11-06 08:41:02 -05:00
|
|
|
version "baseline", "17"
|
|
|
|
version "compatible", "17 or 21"
|
2023-09-26 04:00:34 -04:00
|
|
|
version "jdbc", "4.2" // Bundled with JDK 11
|
2023-08-07 21:05:47 -04:00
|
|
|
|
|
|
|
// Gradle does bytecode transformation on tests.
|
|
|
|
// You can't use bytecode higher than what Gradle supports, even with toolchains.
|
2024-07-26 08:56:22 -04:00
|
|
|
version "maxSupportedBytecode", "22"
|
2023-08-07 21:05:47 -04:00
|
|
|
}
|
2022-04-22 19:40:06 -04:00
|
|
|
libs {
|
2023-09-01 02:22:06 -04:00
|
|
|
def antlrVersion = version "antlr", "4.13.0"
|
2024-07-15 13:31:10 -04:00
|
|
|
def byteBuddyVersion = version "byteBuddy", "1.14.18"
|
2023-08-08 19:11:13 -04:00
|
|
|
def classmateVersion = version "classmate", "1.5.1"
|
2024-06-24 05:15:41 -04:00
|
|
|
def geolatteVersion = version "geolatte", "1.9.1"
|
2024-03-06 12:54:30 -05:00
|
|
|
def hibernateModelsVersion = version "hibernateModels", "0.6.10"
|
2024-07-02 02:45:33 -04:00
|
|
|
def jandexVersion = version "jandex", "3.2.0"
|
2023-12-04 12:04:25 -05:00
|
|
|
def hcannVersion = version "hcann", "7.0.1.Final"
|
2024-05-02 02:17:09 -04:00
|
|
|
def jacksonVersion = version "jackson", "2.17.0"
|
2023-08-08 19:11:13 -04:00
|
|
|
def jbossLoggingVersion = version "jbossLogging", "3.5.0.Final"
|
2024-07-23 20:12:44 -04:00
|
|
|
def jbossLoggingToolVersion = version "jbossLoggingTool", "3.0.1.Final"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
def agroalVersion = version "agroal", "2.0"
|
|
|
|
def c3poVersion = version"c3p0", "0.9.5.5"
|
|
|
|
def hikaricpVersion = version "hikaricp", "3.2.0"
|
|
|
|
def proxoolVersion = version "proxool", "0.8.3"
|
|
|
|
def viburVersion = version "vibur", "25.0"
|
2024-05-15 13:52:08 -04:00
|
|
|
def ucpVersion = version "ucp", "23.4.0.24.05"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
def jcacheVersion = version "jcache", "1.0.0"
|
|
|
|
def ehcache3Version = version "ehcache3", "3.10.8"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
def micrometerVersion = version "micrometer", "1.10.4"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
def hibernateValidatorVersion = version "hibernateValidator", "8.0.0.Final"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "antlr", "org.antlr", "antlr4" ).versionRef( antlrVersion )
|
|
|
|
library( "antlrRuntime", "org.antlr", "antlr4-runtime" ).versionRef( antlrVersion)
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "byteBuddy", "net.bytebuddy", "byte-buddy" ).versionRef( byteBuddyVersion )
|
|
|
|
library( "byteBuddyAgent", "net.bytebuddy", "byte-buddy-agent" ).versionRef( byteBuddyVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "logging", "org.jboss.logging", "jboss-logging" ).versionRef( jbossLoggingVersion )
|
|
|
|
library( "loggingAnnotations", "org.jboss.logging", "jboss-logging-annotations" ).versionRef( jbossLoggingToolVersion )
|
|
|
|
library( "loggingProcessor", "org.jboss.logging", "jboss-logging-processor" ).versionRef( jbossLoggingToolVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-12-04 12:04:25 -05:00
|
|
|
library( "hibernateModels", "org.hibernate.models", "hibernate-models" ).versionRef( hibernateModelsVersion )
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "jandex", "io.smallrye", "jandex" ).versionRef( jandexVersion )
|
|
|
|
library( "classmate", "com.fasterxml", "classmate" ).versionRef( classmateVersion )
|
2023-12-04 12:04:25 -05:00
|
|
|
library( "hcann", "org.hibernate.common", "hibernate-commons-annotations" ).versionRef( hcannVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "jackson", "com.fasterxml.jackson.core", "jackson-databind" ).versionRef( jacksonVersion )
|
|
|
|
library( "jacksonXml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-xml" ).versionRef( jacksonVersion )
|
|
|
|
library( "jacksonJsr310", "com.fasterxml.jackson.datatype", "jackson-datatype-jsr310" ).versionRef( jacksonVersion )
|
|
|
|
library( "validator", "org.hibernate.validator", "hibernate-validator" ).versionRef( hibernateValidatorVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "agroal", "io.agroal", "agroal-api" ).versionRef( agroalVersion )
|
|
|
|
library( "agroalPool", "io.agroal", "agroal-pool" ).versionRef( agroalVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "c3p0", "com.mchange", "c3p0" ).versionRef( c3poVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "hikaricp", "com.zaxxer", "HikariCP" ).versionRef( hikaricpVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "proxool", "proxool", "proxool" ).versionRef( proxoolVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "vibur", "org.vibur", "vibur-dbcp" ).versionRef( viburVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-11-10 10:04:18 -05:00
|
|
|
library( "ucp", "com.oracle.database.jdbc", "ucp11" ).versionRef( ucpVersion )
|
|
|
|
|
|
|
|
library( "ojdbc11", "com.oracle.database.jdbc", "ojdbc11" ).versionRef( ucpVersion )
|
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "geolatte", "org.geolatte", "geolatte-geom" ).versionRef( geolatteVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "jcache", "javax.cache", "cache-api" ).versionRef( jcacheVersion )
|
|
|
|
library( "ehcache3", "org.ehcache", "ehcache" ).versionRef( ehcache3Version )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "micrometer", "io.micrometer", "micrometer-core" ).versionRef( micrometerVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
|
|
|
library( "ant", "org.apache.ant", "ant" ).version( "1.8.2" )
|
2022-04-22 19:40:06 -04:00
|
|
|
}
|
|
|
|
jakartaLibs {
|
2022-05-09 20:33:30 -04:00
|
|
|
// `jakartaJpaVersion` comes from the local-build-plugins to allow for command-line overriding of the JPA version to use
|
2023-08-08 19:11:13 -04:00
|
|
|
def jpaVersion = version "jpa", "${jakartaJpaVersion}"
|
|
|
|
|
|
|
|
def annotationVersion = version "annotation", "2.1.1"
|
|
|
|
def cdiVersion = version "cdi", "4.0.1"
|
|
|
|
def elVersion = version "el", "5.0.0"
|
|
|
|
def injectVersion = version "inject", "2.0.1"
|
|
|
|
def interceptorsVersion = version "interceptors", "2.1.0"
|
2024-06-12 04:40:19 -04:00
|
|
|
def dataVersion = version "data", "1.0.0"
|
2023-08-08 19:11:13 -04:00
|
|
|
def jaccVersion = version "jacc", "2.1.0"
|
|
|
|
def jaxbApiVersion = version "jaxbApi", "4.0.0"
|
|
|
|
def jaxbRuntimeVersion = version "jaxbRuntime", "4.0.2"
|
|
|
|
def jsonbApiVersion = version "jsonbApi", "3.0.0"
|
|
|
|
def jsonbRuntimeVersion = version "jsonbRuntime", "3.0.2"
|
|
|
|
def jtaVersion = version "jta", "2.0.1"
|
|
|
|
def validationVersion = version "validation", "3.0.2"
|
|
|
|
def xjcVersion = version "jaxbRuntime", jaxbRuntimeVersion
|
|
|
|
|
|
|
|
library( "jpa", "jakarta.persistence", "jakarta.persistence-api" ).versionRef( jpaVersion )
|
|
|
|
library( "jta", "jakarta.transaction", "jakarta.transaction-api" ).versionRef( jtaVersion )
|
|
|
|
|
|
|
|
library( "validation", "jakarta.validation", "jakarta.validation-api" ).versionRef( validationVersion )
|
|
|
|
library( "jacc", "jakarta.authorization", "jakarta.authorization-api" ).versionRef( jaccVersion )
|
|
|
|
library( "cdi", "jakarta.enterprise", "jakarta.enterprise.cdi-api" ).versionRef( cdiVersion )
|
|
|
|
library( "annotation", "jakarta.annotation", "jakarta.annotation-api" ).versionRef( annotationVersion )
|
|
|
|
library( "interceptors", "jakarta.interceptor", "jakarta.interceptor-api" ).versionRef( interceptorsVersion )
|
2024-02-23 15:36:06 -05:00
|
|
|
library( "data", "jakarta.data", "jakarta.data-api" ).versionRef( dataVersion )
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "jsonbApi", "jakarta.json.bind", "jakarta.json.bind-api" ).versionRef( jsonbApiVersion )
|
|
|
|
library( "jsonb", "org.eclipse", "yasson" ).versionRef( jsonbRuntimeVersion )
|
|
|
|
library( "inject", "jakarta.inject", "jakarta.inject-api" ).versionRef( injectVersion )
|
|
|
|
library( "jaxbApi", "jakarta.xml.bind", "jakarta.xml.bind-api" ).versionRef( jaxbApiVersion )
|
|
|
|
library( "jaxb", "org.glassfish.jaxb", "jaxb-runtime" ).versionRef( jaxbRuntimeVersion )
|
|
|
|
library( "xjc", "org.glassfish.jaxb", "jaxb-xjc" ).versionRef( xjcVersion )
|
|
|
|
library( "el", "org.glassfish.expressly", "expressly" ).versionRef( elVersion )
|
2022-04-22 19:40:06 -04:00
|
|
|
}
|
|
|
|
testLibs {
|
2024-05-02 04:10:25 -04:00
|
|
|
def junit5Version = version "junit5", "5.10.2"
|
2023-08-08 19:11:13 -04:00
|
|
|
def junit4Version = version "junit4", "4.13.2"
|
2024-04-05 10:34:11 -04:00
|
|
|
def junit5LauncherVersion = version "junit5Launcher", "1.10.2"
|
2023-08-08 19:11:13 -04:00
|
|
|
|
|
|
|
def assertjVersion = version "assertj", "3.22.0"
|
|
|
|
def bytemanVersion = version "byteman", "4.0.20"
|
|
|
|
def jbossJtaVersion = version "jbossJta", "7.0.0.Final"
|
|
|
|
def jbossTxSpiVersion = version "jbossTxSpi", "8.0.0.Final"
|
|
|
|
def log4jVersion = version "log4j", "2.17.1"
|
|
|
|
def mockitoVersion = version "mockito", "5.2.0"
|
2023-07-31 11:34:57 -04:00
|
|
|
//Compatible with JDK20
|
2023-08-08 19:11:13 -04:00
|
|
|
def shrinkwrapVersion = version "shrinkwrap", "1.2.6"
|
|
|
|
def shrinkwrapDescriptorsVersion = version "shrinkwrapDescriptors", "2.0.0"
|
|
|
|
def weldVersion = version "weld", "4.0.1.SP1"
|
|
|
|
def wildFlyTxnClientVersion = version "wildFlyTxnClient", "2.0.0.Final"
|
|
|
|
def xapoolVersion = version "xapool", "1.5.0"
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-09-14 09:18:46 -04:00
|
|
|
def jfrUnitVersion = version "jfrUnit", "1.0.0.Alpha2"
|
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "junit5Api", "org.junit.jupiter", "junit-jupiter-api" ).versionRef( junit5Version )
|
|
|
|
library( "junit5Engine", "org.junit.jupiter", "junit-jupiter-engine" ).versionRef( junit5Version )
|
|
|
|
library( "junit5Params", "org.junit.jupiter", "junit-jupiter-params" ).versionRef( junit5Version )
|
|
|
|
library( "junit4Engine", "org.junit.vintage", "junit-vintage-engine" ).versionRef( junit5Version )
|
2024-04-05 10:34:11 -04:00
|
|
|
library( "junit5Launcher", "org.junit.platform", "junit-platform-launcher" ).versionRef( junit5LauncherVersion )
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "junit4", "junit", "junit" ).versionRef( junit4Version )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "assertjCore", "org.assertj", "assertj-core" ).versionRef( assertjVersion )
|
|
|
|
library( "assertjApi", "org.assertj", "assertj-core-api" ).versionRef( assertjVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "log4j2", "org.apache.logging.log4j", "log4j-core" ).versionRef( log4jVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "shrinkwrap", "org.jboss.shrinkwrap", "shrinkwrap-impl-base" ).versionRef( shrinkwrapVersion )
|
|
|
|
library( "shrinkwrapApi", "org.jboss.shrinkwrap", "shrinkwrap-api" ).versionRef( shrinkwrapVersion )
|
|
|
|
library( "shrinkwrapDescriptors", "org.jboss.shrinkwrap.descriptors", "shrinkwrap-descriptors-impl-javaee" ).versionRef( shrinkwrapDescriptorsVersion )
|
|
|
|
library( "shrinkwrapDescriptorsApi", "org.jboss.shrinkwrap.descriptors", "shrinkwrap-descriptors-api-javaee" ).versionRef( shrinkwrapDescriptorsVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "byteman", "org.jboss.byteman", "byteman" ).versionRef( bytemanVersion )
|
|
|
|
library( "bytemanInstall", "org.jboss.byteman", "byteman-install" ).versionRef( bytemanVersion )
|
|
|
|
library( "bytemanBmunit", "org.jboss.byteman", "byteman-bmunit" ).versionRef( bytemanVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "mockito", "org.mockito", "mockito-core" ).versionRef( mockitoVersion )
|
|
|
|
library( "mockitoInline", "org.mockito", "mockito-inline" ).versionRef( mockitoVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "xapool", "com.experlog", "xapool" ).versionRef( xapoolVersion )
|
|
|
|
library( "jbossJta", "org.jboss.narayana.jta", "narayana-jta" ).versionRef( jbossJtaVersion )
|
|
|
|
library( "jbossTxSpi", "org.jboss", "jboss-transaction-spi" ).versionRef( jbossTxSpiVersion )
|
|
|
|
library( "wildFlyTxnClient", "org.wildfly.transaction", "wildfly-transaction-client-jakarta" ).versionRef( wildFlyTxnClientVersion )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "weld", "org.jboss.weld.se", "weld-se-shaded" ).versionRef( weldVersion )
|
2023-09-14 09:18:46 -04:00
|
|
|
|
|
|
|
library( "jfrUnit", "org.moditect.jfrunit", "jfrunit-core" ).versionRef( jfrUnitVersion )
|
2022-04-22 19:40:06 -04:00
|
|
|
}
|
|
|
|
dbLibs {
|
2023-10-18 02:00:19 -04:00
|
|
|
def h2Version = version "h2", overrideableVersion( "gradle.libs.versions.h2", "2.2.224" )
|
2023-07-31 11:34:57 -04:00
|
|
|
|
2023-12-08 08:40:35 -05:00
|
|
|
def db2Version = version "db2", "11.5.9.0"
|
2023-07-31 11:34:57 -04:00
|
|
|
// Latest Derby version 10.16.1.1 only supports JDK 17+, but 10.15.2 should be compatible
|
2023-08-21 12:34:07 -04:00
|
|
|
def derbyVersion = version "derby", overrideableVersion( "gradle.libs.versions.derby", "10.15.2.0" )
|
2023-08-08 19:11:13 -04:00
|
|
|
def firebirdVersion = version "firebird", "4.0.8.java11"
|
2023-12-08 08:44:37 -05:00
|
|
|
def hanaVersion = version "hana", "2.19.11"
|
2023-08-08 19:11:13 -04:00
|
|
|
def h2gisVersion = version "h2gis", overrideableVersion( "gradle.libs.versions.h2gis", "2.2.0" )
|
|
|
|
def hsqldbVersion = version "hsqldb", overrideableVersion( "gradle.libs.versions.hsqldb", "2.7.2" )
|
2024-06-07 08:51:13 -04:00
|
|
|
def informixVersion = version "informix", "4.50.10.1"
|
2024-07-05 11:44:15 -04:00
|
|
|
def mariadbVersion = version "mariadb", "3.4.0"
|
2023-12-08 08:33:55 -05:00
|
|
|
def mssqlVersion = version "mssql", "12.4.2.jre11"
|
2023-12-08 08:21:52 -05:00
|
|
|
def mysqlVersion = version "mysql", "8.2.0"
|
2024-05-15 13:52:08 -04:00
|
|
|
def oracleVersion = version "oracle", "23.4.0.24.05"
|
2023-10-02 09:19:12 -04:00
|
|
|
def oracleLegacyVersion = version "oracleLegacy", "11.2.0.4"
|
2023-12-08 08:08:39 -05:00
|
|
|
def pgsqlVersion = version "pgsql", "42.7.1"
|
2023-08-08 19:11:13 -04:00
|
|
|
def sybaseVersion = version "sybase", "1.3.1"
|
|
|
|
def tidbVersion = version "tidb", mysqlVersion
|
2024-02-05 01:32:45 -05:00
|
|
|
def altibaseVersion = version "altibase", "7.3.0.0.3"
|
2023-08-08 19:11:13 -04:00
|
|
|
|
|
|
|
library( "h2", "com.h2database", "h2" ).versionRef( h2Version )
|
|
|
|
library( "h2gis", "org.orbisgis", "h2gis" ).versionRef( h2gisVersion )
|
|
|
|
library( "hsqldb", "org.hsqldb", "hsqldb" ).versionRef( hsqldbVersion )
|
|
|
|
library( "derby", "org.apache.derby", "derby" ).versionRef( derbyVersion )
|
2023-11-10 10:04:18 -05:00
|
|
|
library( "derbyTools", "org.apache.derby", "derbytools" ).versionRef( derbyVersion )
|
2023-08-08 19:11:13 -04:00
|
|
|
library( "postgresql", "org.postgresql", "postgresql" ).versionRef( pgsqlVersion )
|
|
|
|
library( "cockroachdb", "org.postgresql", "postgresql" ).versionRef( pgsqlVersion )
|
|
|
|
library( "mysql", "com.mysql", "mysql-connector-j" ).versionRef( mysqlVersion )
|
|
|
|
library( "tidb", "com.mysql", "mysql-connector-j" ).versionRef( tidbVersion )
|
|
|
|
library( "mariadb", "org.mariadb.jdbc", "mariadb-java-client" ).versionRef( mariadbVersion )
|
|
|
|
library( "oracle", "com.oracle.database.jdbc", "ojdbc11" ).versionRef( oracleVersion )
|
|
|
|
library( "oracleXml", "com.oracle.database.xml", "xdb" ).versionRef( oracleVersion )
|
|
|
|
library( "oracleXmlParser", "com.oracle.database.xml", "xmlparserv2" ).versionRef( oracleVersion )
|
|
|
|
library( "mssql", "com.microsoft.sqlserver", "mssql-jdbc" ).versionRef( mssqlVersion )
|
|
|
|
library( "db2", "com.ibm.db2", "jcc" ).versionRef( db2Version )
|
|
|
|
library( "hana", "com.sap.cloud.db.jdbc", "ngdbc" ).versionRef( hanaVersion )
|
|
|
|
library( "sybase", "net.sourceforge.jtds", "jtds" ).versionRef( sybaseVersion )
|
|
|
|
library( "informix", "com.ibm.informix", "jdbc" ).versionRef( informixVersion )
|
|
|
|
library( "firebird", "org.firebirdsql.jdbc", "jaybird" ).versionRef( firebirdVersion )
|
2023-11-13 21:24:17 -05:00
|
|
|
library( "altibase", "com.altibase", "altibase-jdbc" ).versionRef( altibaseVersion )
|
2022-04-22 19:40:06 -04:00
|
|
|
}
|
|
|
|
mavenLibs {
|
2023-08-08 19:11:13 -04:00
|
|
|
def mavenCoreVersion = version "mavenCore", "3.8.1"
|
|
|
|
def mavenVersion = version "maven", "3.0.5"
|
|
|
|
def mavenPluginToolsVersion = version "mavenPluginTools", "3.2"
|
|
|
|
|
|
|
|
library( "mavenCore", "org.apache.maven", "maven-core" ).versionRef( mavenCoreVersion )
|
|
|
|
library( "mavenArtifact", "org.apache.maven", "maven-artifact" ).versionRef( mavenVersion )
|
|
|
|
library( "mavenPlugin", "org.apache.maven", "maven-plugin-api" ).versionRef( mavenVersion )
|
|
|
|
library( "mavenPluginTools", "org.apache.maven.plugin-tools", "maven-plugin-annotations" ).versionRef( mavenPluginToolsVersion )
|
2022-04-22 19:40:06 -04:00
|
|
|
}
|
|
|
|
}
|
2022-03-15 10:39:07 -04:00
|
|
|
}
|
2021-05-25 17:11:31 -04:00
|
|
|
|
2023-07-31 11:34:57 -04:00
|
|
|
String overrideableVersion(String settingName, String defaultVersion) {
|
|
|
|
String overridden = settings.ext.find( settingName )
|
|
|
|
if ( overridden != null ) {
|
|
|
|
return overridden
|
|
|
|
}
|
|
|
|
return defaultVersion
|
|
|
|
}
|
|
|
|
|
2022-03-15 10:39:07 -04:00
|
|
|
rootProject.name = 'hibernate-orm'
|
2021-06-26 09:46:09 -04:00
|
|
|
|
2024-04-16 15:14:59 -04:00
|
|
|
apply from: file( 'gradle/gradle-develocity.gradle' )
|
2021-05-24 13:25:53 -04:00
|
|
|
|
2021-11-26 11:24:34 -05:00
|
|
|
if ( !JavaVersion.current().java11Compatible ) {
|
|
|
|
throw new GradleException( "Gradle must be run with Java 11 or later" )
|
2019-10-23 02:45:47 -04:00
|
|
|
}
|
|
|
|
|
2021-07-26 14:51:22 -04:00
|
|
|
buildCache {
|
2021-11-30 08:17:47 -05:00
|
|
|
local {
|
|
|
|
// do not use local build cache for CI jobs, period!
|
2022-02-01 10:40:31 -05:00
|
|
|
enabled = !settings.ext.isCiEnvironment
|
2021-11-30 08:17:47 -05:00
|
|
|
}
|
2024-04-16 15:14:59 -04:00
|
|
|
remote(develocity.buildCache) {
|
2021-11-30 08:17:47 -05:00
|
|
|
enabled = true
|
2023-12-11 10:41:47 -05:00
|
|
|
// Check access key presence to avoid build cache errors on PR builds when access key is not present
|
2024-04-16 15:14:59 -04:00
|
|
|
def accessKey = System.getenv("DEVELOCITY_ACCESS_KEY")
|
2023-12-11 10:41:47 -05:00
|
|
|
push = settings.ext.populateRemoteBuildCache && accessKey
|
2021-11-30 08:17:47 -05:00
|
|
|
}
|
2021-07-26 14:51:22 -04:00
|
|
|
}
|
|
|
|
|
2010-10-08 21:20:10 -04:00
|
|
|
include 'hibernate-core'
|
2013-11-26 18:48:25 -05:00
|
|
|
include 'hibernate-testing'
|
2021-04-22 12:15:45 -04:00
|
|
|
|
2010-10-09 14:24:27 -04:00
|
|
|
include 'hibernate-envers'
|
2021-09-22 18:52:06 -04:00
|
|
|
include 'hibernate-spatial'
|
2016-06-23 03:34:34 -04:00
|
|
|
|
2022-04-22 19:40:06 -04:00
|
|
|
include 'hibernate-platform'
|
|
|
|
|
2021-04-13 12:13:30 -04:00
|
|
|
include 'hibernate-community-dialects'
|
2023-11-08 12:55:11 -05:00
|
|
|
include 'hibernate-vector'
|
2010-10-08 21:20:10 -04:00
|
|
|
|
2010-10-09 14:27:47 -04:00
|
|
|
include 'hibernate-c3p0'
|
2010-10-09 14:31:54 -04:00
|
|
|
include 'hibernate-proxool'
|
2014-03-17 16:33:44 -04:00
|
|
|
include 'hibernate-hikaricp'
|
2018-01-13 07:48:46 -05:00
|
|
|
include 'hibernate-vibur'
|
2017-09-05 19:49:17 -04:00
|
|
|
include 'hibernate-agroal'
|
2023-11-10 10:04:18 -05:00
|
|
|
include 'hibernate-ucp'
|
2010-10-09 14:27:47 -04:00
|
|
|
|
2021-11-16 11:15:58 -05:00
|
|
|
include 'hibernate-jcache'
|
2021-05-13 14:11:38 -04:00
|
|
|
|
2020-11-17 17:39:43 -05:00
|
|
|
include 'hibernate-micrometer'
|
2020-02-13 06:41:04 -05:00
|
|
|
include 'hibernate-graalvm'
|
2021-11-26 11:24:34 -05:00
|
|
|
include 'hibernate-integrationtest-java-modules'
|
2019-05-24 03:26:01 -04:00
|
|
|
|
2013-11-13 19:23:48 -05:00
|
|
|
include 'documentation'
|
|
|
|
include 'release'
|
|
|
|
|
2023-11-09 05:33:57 -05:00
|
|
|
// Not all JDK implementations support JFR
|
|
|
|
if ( "OpenJDK Runtime Environment".equals( System.getProperty( "java.runtime.name" ) ) ) {
|
|
|
|
include 'hibernate-jfr'
|
|
|
|
}
|
|
|
|
|
2013-10-25 15:27:45 -04:00
|
|
|
include 'metamodel-generator'
|
|
|
|
project(':metamodel-generator').projectDir = new File(rootProject.projectDir, "tooling/metamodel-generator")
|
2015-03-23 15:36:41 -04:00
|
|
|
project(':metamodel-generator').name = 'hibernate-jpamodelgen'
|
2013-10-25 15:27:45 -04:00
|
|
|
|
2022-03-15 21:10:17 -04:00
|
|
|
include 'hibernate-gradle-plugin'
|
|
|
|
project(':hibernate-gradle-plugin').projectDir = new File(rootProject.projectDir, "tooling/hibernate-gradle-plugin")
|
2020-10-15 18:20:30 -04:00
|
|
|
|
2015-03-25 21:41:23 -04:00
|
|
|
include 'hibernate-enhance-maven-plugin'
|
|
|
|
project(':hibernate-enhance-maven-plugin').projectDir = new File(rootProject.projectDir, "tooling/hibernate-enhance-maven-plugin")
|
2010-10-12 16:39:33 -04:00
|
|
|
|
2021-09-27 15:07:01 -04:00
|
|
|
include 'hibernate-ant'
|
|
|
|
project(':hibernate-ant').projectDir = new File(rootProject.projectDir, "tooling/hibernate-ant")
|
|
|
|
|
2010-10-08 21:20:10 -04:00
|
|
|
rootProject.children.each { project ->
|
|
|
|
project.buildFileName = "${project.name}.gradle"
|
|
|
|
assert project.projectDir.isDirectory()
|
2013-11-13 19:23:48 -05:00
|
|
|
assert project.buildFile.exists()
|
2010-10-08 21:20:10 -04:00
|
|
|
assert project.buildFile.isFile()
|
2021-05-24 12:49:11 -04:00
|
|
|
}
|
2022-04-22 19:40:06 -04:00
|
|
|
include 'hibernate-platform'
|