2012-08-22 14:41:16 -04:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
2015-05-19 00:23:35 -04:00
|
|
|
* 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>.
|
2012-08-22 14:41:16 -04:00
|
|
|
*/
|
|
|
|
|
2012-08-08 05:09:11 -04:00
|
|
|
// build a map of the dependency artifacts to use. Allows centralized definition of the version of artifacts to
|
|
|
|
// use. In that respect it serves a role similar to <dependencyManagement> in Maven
|
|
|
|
ext {
|
2012-08-22 14:41:16 -04:00
|
|
|
|
2016-06-23 07:26:20 -04:00
|
|
|
junitVersion = '4.12'
|
2020-10-15 18:20:30 -04:00
|
|
|
junitVintageVersion = '5.4.2'
|
|
|
|
junit5Version = '5.4.2'
|
2019-05-21 17:29:57 -04:00
|
|
|
|
2020-01-06 09:38:08 -05:00
|
|
|
h2Version = '1.4.199'
|
2020-08-12 04:21:21 -04:00
|
|
|
bytemanVersion = '4.0.13' //Compatible with JDK16
|
2012-08-22 14:41:16 -04:00
|
|
|
jnpVersion = '5.0.6.CR1'
|
2017-12-14 04:20:02 -05:00
|
|
|
|
2020-10-30 12:53:18 -04:00
|
|
|
hibernateCommonsVersion = '5.1.2.Final'
|
2020-10-30 16:21:56 -04:00
|
|
|
hibernateValidatorVersion = '6.1.6.Final'
|
2020-04-24 08:27:11 -04:00
|
|
|
validationApiVersion = '2.0.1.Final'
|
|
|
|
elVersion = '3.0.1-b09'
|
2017-12-11 14:56:28 -05:00
|
|
|
|
|
|
|
cdiVersion = '2.0'
|
2020-12-14 07:14:05 -05:00
|
|
|
weldVersion = '3.1.5.Final'
|
2012-08-22 14:41:16 -04:00
|
|
|
|
2020-11-10 10:27:29 -05:00
|
|
|
javassistVersion = '3.27.0-GA'
|
2021-02-23 08:24:31 -05:00
|
|
|
byteBuddyVersion = '1.10.21'
|
2016-08-06 15:05:03 -04:00
|
|
|
|
2020-10-30 16:27:13 -04:00
|
|
|
agroalVersion = '1.9'
|
2016-08-06 15:05:03 -04:00
|
|
|
|
2019-11-29 11:15:40 -05:00
|
|
|
assertjVersion = '3.14.0'
|
|
|
|
|
2021-02-03 16:16:17 -05:00
|
|
|
geolatteVersion = '1.6.1'
|
2018-03-30 00:16:12 -04:00
|
|
|
|
2016-07-04 05:14:29 -04:00
|
|
|
shrinkwrapVersion = '1.2.6'
|
2018-10-15 13:13:10 -04:00
|
|
|
shrinkwrapDescriptorsVersion = '2.0.0'
|
2016-06-27 08:07:08 -04:00
|
|
|
|
2018-03-30 00:16:12 -04:00
|
|
|
jodaTimeVersion = '2.3'
|
|
|
|
|
2018-11-23 04:08:15 -05:00
|
|
|
jaxbApiVersion = '2.3.1'
|
|
|
|
// We can't upgrade JAXB in Karaf (yet), but fortunately everything works fine with the version built in Karaf
|
|
|
|
jaxbApiVersionOsgiRange = "[2.2,3)"
|
|
|
|
jaxbRuntimeVersion = '2.3.1'
|
|
|
|
|
2020-02-13 06:41:04 -05:00
|
|
|
//GraalVM
|
|
|
|
graalvmVersion = '19.3.1'
|
|
|
|
|
2021-01-11 08:10:36 -05:00
|
|
|
antlrVersion = '4.9.1'
|
2020-03-12 10:42:38 -04:00
|
|
|
|
2020-11-17 17:39:43 -05:00
|
|
|
micrometerVersion = '1.6.1'
|
|
|
|
|
2012-08-22 14:41:16 -04:00
|
|
|
libraries = [
|
|
|
|
// Ant
|
|
|
|
ant: 'org.apache.ant:ant:1.8.2',
|
|
|
|
|
|
|
|
// Antlr
|
2020-03-14 10:17:57 -04:00
|
|
|
antlr: "org.antlr:antlr4:${antlrVersion}",
|
|
|
|
antlr4_runtime: "org.antlr:antlr4-runtime:${antlrVersion}",
|
2012-08-22 14:41:16 -04:00
|
|
|
|
|
|
|
// Annotations
|
2018-06-19 10:41:25 -04:00
|
|
|
commons_annotations: "org.hibernate.common:hibernate-commons-annotations:${hibernateCommonsVersion}",
|
2021-01-24 10:05:48 -05:00
|
|
|
jandex: 'org.jboss:jandex:2.2.3.Final',
|
2019-11-14 05:10:48 -05:00
|
|
|
classmate: 'com.fasterxml:classmate:1.5.1',
|
2012-08-22 14:41:16 -04:00
|
|
|
|
|
|
|
// Dom4J
|
2020-04-16 12:46:18 -04:00
|
|
|
dom4j: 'org.dom4j:dom4j:2.1.3@jar',
|
2012-08-22 14:41:16 -04:00
|
|
|
|
|
|
|
// Javassist
|
2016-08-06 15:05:03 -04:00
|
|
|
javassist: "org.javassist:javassist:${javassistVersion}",
|
2012-08-22 14:41:16 -04:00
|
|
|
|
2016-10-04 16:43:27 -04:00
|
|
|
// Byte Buddy
|
|
|
|
byteBuddy: "net.bytebuddy:byte-buddy:${byteBuddyVersion}",
|
|
|
|
|
2012-08-22 14:41:16 -04:00
|
|
|
// javax
|
2018-04-11 14:18:19 -04:00
|
|
|
jpa: "javax.persistence:javax.persistence-api:${project.jpaVersion}",
|
2018-05-15 04:48:21 -04:00
|
|
|
jta: 'org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final',
|
2020-04-24 08:27:11 -04:00
|
|
|
validation: "javax.validation:validation-api:${validationApiVersion}",
|
2013-01-23 18:22:03 -05:00
|
|
|
jacc: 'org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.2.Final',
|
2017-02-01 19:52:59 -05:00
|
|
|
interceptor: 'javax.interceptor:javax.interceptor-api:1.2',
|
2018-06-25 11:47:36 -04:00
|
|
|
// required by JAXB from JDK 9 as it is not available anymore in JDK 9
|
|
|
|
activation: 'javax.activation:javax.activation-api:1.2.0',
|
2012-08-22 14:41:16 -04:00
|
|
|
|
|
|
|
// logging
|
2020-10-30 16:27:32 -04:00
|
|
|
logging: 'org.jboss.logging:jboss-logging:3.4.1.Final',
|
2017-11-06 09:09:05 -05:00
|
|
|
logging_annotations: 'org.jboss.logging:jboss-logging-annotations:2.1.0.Final',
|
|
|
|
logging_processor: 'org.jboss.logging:jboss-logging-processor:2.1.0.Final',
|
2012-08-22 14:41:16 -04:00
|
|
|
|
|
|
|
// jaxb task
|
2018-11-23 04:08:15 -05:00
|
|
|
jaxb_api: "javax.xml.bind:jaxb-api:${jaxbApiVersion}",
|
|
|
|
jaxb_runtime: "org.glassfish.jaxb:jaxb-runtime:${jaxbRuntimeVersion}",
|
|
|
|
jaxb_xjc: "org.glassfish.jaxb:jaxb-xjc:${jaxbRuntimeVersion}",
|
2018-10-15 04:43:28 -04:00
|
|
|
// Note that jaxb2_basics is a set of tools on *top* of JAXB.
|
|
|
|
// See https://github.com/highsource/jaxb2-basics
|
2018-11-23 04:08:15 -05:00
|
|
|
jaxb2_basics: 'org.jvnet.jaxb2_commons:jaxb2-basics:0.12.0',
|
|
|
|
jaxb2_basics_ant: 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.12.0',
|
2013-05-03 06:33:40 -04:00
|
|
|
|
2018-03-30 00:16:12 -04:00
|
|
|
geolatte: "org.geolatte:geolatte-geom:${geolatteVersion}",
|
|
|
|
|
2013-05-03 06:33:40 -04:00
|
|
|
// Animal Sniffer Ant Task and Java 1.6 API signature file
|
|
|
|
// not using 1.9 for the time being due to MANIMALSNIFFER-34
|
2015-03-24 17:01:15 -04:00
|
|
|
animal_sniffer: 'org.codehaus.mojo:animal-sniffer-ant-tasks:1.13',
|
|
|
|
java16_signature: 'org.codehaus.mojo.signature:java16:1.0@signature',
|
2013-05-03 06:33:40 -04:00
|
|
|
|
2013-08-20 10:54:17 -04:00
|
|
|
//Maven plugin framework
|
2015-09-28 23:19:32 -04:00
|
|
|
maven_core: 'org.apache.maven:maven-core:3.0.5',
|
|
|
|
maven_artifact: 'org.apache.maven:maven-artifact:3.0.5',
|
2013-08-20 10:54:17 -04:00
|
|
|
maven_plugin: 'org.apache.maven:maven-plugin-api:3.0.5',
|
|
|
|
maven_plugin_tools: 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.2',
|
|
|
|
|
2012-08-22 14:41:16 -04:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~ testing
|
|
|
|
|
2019-05-21 17:29:57 -04:00
|
|
|
|
|
|
|
junit5_api: "org.junit.jupiter:junit-jupiter-api:${junit5Version}",
|
|
|
|
junit5_jupiter: "org.junit.jupiter:junit-jupiter-engine:${junit5Version}",
|
|
|
|
junit5_params : "org.junit.jupiter:junit-jupiter-params:${junit5Version}",
|
|
|
|
junit: "junit:junit:${junitVersion}",
|
|
|
|
junit5_vintage: "org.junit.vintage:junit-vintage-engine:${junitVintageVersion}",
|
|
|
|
|
2013-10-09 13:14:26 -04:00
|
|
|
log4j: "log4j:log4j:1.2.17",
|
2019-05-21 17:29:57 -04:00
|
|
|
|
2012-08-22 14:41:16 -04:00
|
|
|
byteman: "org.jboss.byteman:byteman:${bytemanVersion}",
|
|
|
|
byteman_install: "org.jboss.byteman:byteman-install:${bytemanVersion}",
|
|
|
|
byteman_bmunit: "org.jboss.byteman:byteman-bmunit:${bytemanVersion}",
|
|
|
|
h2: "com.h2database:h2:${h2Version}",
|
2016-06-14 03:29:27 -04:00
|
|
|
hsqldb: "org.hsqldb:hsqldb:2.3.2",
|
2015-09-08 09:01:49 -04:00
|
|
|
derby: "org.apache.derby:derby:10.11.1.1",
|
2020-09-30 13:39:30 -04:00
|
|
|
postgresql: 'org.postgresql:postgresql:42.2.16',
|
2019-08-26 07:53:29 -04:00
|
|
|
mysql: 'mysql:mysql-connector-java:8.0.17',
|
2017-06-11 14:37:10 -04:00
|
|
|
mariadb: 'org.mariadb.jdbc:mariadb-java-client:2.2.3',
|
2019-11-11 14:29:30 -05:00
|
|
|
cockroachdb: 'org.postgresql:postgresql:42.2.8',
|
2017-02-13 09:48:43 -05:00
|
|
|
|
2021-03-08 09:11:32 -05:00
|
|
|
oracle: 'com.oracle.database.jdbc:ojdbc8:21.1.0.0',
|
2019-04-17 09:35:13 -04:00
|
|
|
mssql: 'com.microsoft.sqlserver:mssql-jdbc:7.2.1.jre8',
|
2020-11-19 09:50:16 -05:00
|
|
|
db2: 'com.ibm.db2:jcc:11.5.4.0',
|
2019-08-08 11:30:56 -04:00
|
|
|
hana: 'com.sap.cloud.db.jdbc:ngdbc:2.4.59',
|
2016-11-18 10:39:14 -05:00
|
|
|
|
2018-03-30 00:16:12 -04:00
|
|
|
jodaTime: "joda-time:joda-time:${jodaTimeVersion}",
|
|
|
|
|
2018-10-12 04:31:44 -04:00
|
|
|
informix: 'com.ibm.informix:jdbc:4.10.12',
|
2012-08-22 14:41:16 -04:00
|
|
|
jboss_jta: "org.jboss.jbossts:jbossjta:4.16.4.Final",
|
|
|
|
xapool: "com.experlog:xapool:1.5.0",
|
2018-07-14 05:59:53 -04:00
|
|
|
mockito: 'org.mockito:mockito-core:2.19.1',
|
|
|
|
mockito_inline: 'org.mockito:mockito-inline:2.19.1',
|
2016-03-29 12:04:48 -04:00
|
|
|
|
2017-12-14 04:20:02 -05:00
|
|
|
validator: "org.hibernate.validator:hibernate-validator:${hibernateValidatorVersion}",
|
2015-07-29 09:56:59 -04:00
|
|
|
// EL required by Hibernate Validator at test runtime
|
2020-04-24 08:27:11 -04:00
|
|
|
expression_language: "org.glassfish:javax.el:${elVersion}",
|
2015-07-29 09:56:59 -04:00
|
|
|
|
2020-07-07 07:01:06 -04:00
|
|
|
c3p0: "com.mchange:c3p0:0.9.5.5",
|
2018-11-08 09:13:45 -05:00
|
|
|
ehcache: "net.sf.ehcache:ehcache:2.10.6",
|
|
|
|
ehcache3: "org.ehcache:ehcache:3.6.1",
|
2014-03-19 21:43:42 -04:00
|
|
|
jcache: "javax.cache:cache-api:1.0.0",
|
2014-04-07 15:07:41 -04:00
|
|
|
proxool: "proxool:proxool:0.8.3",
|
2018-10-16 05:16:40 -04:00
|
|
|
hikaricp: "com.zaxxer:HikariCP:3.2.0",
|
2019-11-30 16:36:37 -05:00
|
|
|
vibur: "org.vibur:vibur-dbcp:25.0",
|
2019-10-21 13:34:24 -04:00
|
|
|
agroal_api: "io.agroal:agroal-api:${agroalVersion}",
|
|
|
|
agroal_pool: "io.agroal:agroal-pool:${agroalVersion}",
|
2020-11-17 17:39:43 -05:00
|
|
|
micrometer: "io.micrometer:micrometer-core:1.6.1",
|
2016-06-27 08:07:08 -04:00
|
|
|
|
2018-08-29 06:07:34 -04:00
|
|
|
atomikos: "com.atomikos:transactions:4.0.6",
|
|
|
|
atomikos_jta: "com.atomikos:transactions-jta:4.0.6",
|
|
|
|
|
2017-12-11 14:56:28 -05:00
|
|
|
cdi: "javax.enterprise:cdi-api:${cdiVersion}",
|
|
|
|
weld: "org.jboss.weld.se:weld-se-shaded:${weldVersion}",
|
|
|
|
|
2019-11-29 11:15:40 -05:00
|
|
|
assertj: "org.assertj:assertj-core:${assertjVersion}",
|
|
|
|
|
2020-04-17 03:56:43 -04:00
|
|
|
// Shrinkwrap
|
2016-07-04 05:14:29 -04:00
|
|
|
shrinkwrap_api: "org.jboss.shrinkwrap:shrinkwrap-api:${shrinkwrapVersion}",
|
|
|
|
shrinkwrap: "org.jboss.shrinkwrap:shrinkwrap-impl-base:${shrinkwrapVersion}",
|
|
|
|
|
|
|
|
shrinkwrap_descriptors_api_javaee: "org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-javaee:${shrinkwrapDescriptorsVersion}",
|
|
|
|
shrinkwrap_descriptors_impl_javaee: "org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee:${shrinkwrapDescriptorsVersion}",
|
2012-08-22 14:41:16 -04:00
|
|
|
|
2018-03-06 16:41:42 -05:00
|
|
|
jboss_vfs: "org.jboss:jboss-vfs:3.2.11.Final",
|
2019-09-16 11:22:56 -04:00
|
|
|
wildfly_transaction_client : 'org.wildfly.transaction:wildfly-transaction-client:1.1.7.Final',
|
2016-08-06 15:05:03 -04:00
|
|
|
|
|
|
|
jboss_ejb_spec_jar : 'org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec:1.0.0.Final',
|
2019-05-21 17:29:57 -04:00
|
|
|
jboss_annotation_spec_jar : 'org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.0.Final',
|
|
|
|
|
2020-02-19 09:30:57 -05:00
|
|
|
graalvm_nativeimage : "org.graalvm.nativeimage:svm:${graalvmVersion}",
|
2019-05-21 17:29:57 -04:00
|
|
|
|
2020-02-19 09:30:57 -05:00
|
|
|
//asciidoclet : 'org.asciidoctor:asciidoclet:1.+',
|
|
|
|
// Use the SNAPSHOT temporarily to validate asciidoclet's PR-91 - https://github.com/asciidoctor/asciidoclet/pull/91
|
|
|
|
// - which does not seem to work anyway
|
|
|
|
// todo (6.0) : come back and verify whether this ever works
|
|
|
|
asciidoclet : 'org.asciidoctor:asciidoclet:1.5.7-SNAPSHOT'
|
2012-08-22 14:41:16 -04:00
|
|
|
]
|
2012-08-08 05:09:11 -04:00
|
|
|
}
|
2018-07-12 07:32:01 -04:00
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
|
|
|
//Force the "byte buddy agent" version to match the Byte Buddy version we use, as Mockito might pull in a mismatched version transitively:
|
|
|
|
if (details.requested.group + ":" + details.requested.name == 'net.bytebuddy:byte-buddy-agent') {
|
|
|
|
details.useVersion byteBuddyVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|