More work on hibernate-platform and version catalog

This commit is contained in:
Steve Ebersole 2022-04-26 14:40:08 -05:00
parent 69e57404c6
commit 03384af943
9 changed files with 55 additions and 15 deletions

View File

@ -10,11 +10,9 @@ description = 'Integration for Agroal as a ConnectionProvider for Hibernate ORM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
var agroalVersion = "1.14"
implementation project( ':hibernate-core' )
implementation "io.agroal:agroal-api:${agroalVersion}"
implementation libs.agroal
testImplementation project( ':hibernate-testing' )
testRuntimeOnly "io.agroal:agroal-pool:${agroalVersion}"
testRuntimeOnly libs.agroalPool
}

View File

@ -11,14 +11,14 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
implementation project( ':hibernate-core' )
implementation "com.mchange:c3p0:0.9.5.5"
implementation libs.c3p0
testImplementation project( ':hibernate-testing' )
testImplementation libs.validator
testRuntimeOnly jakartaLibs.el
if ( db.equalsIgnoreCase( 'oracle' ) ) {
testRuntimeOnly libraries.oracle
testRuntimeOnly dbLibs.oracle
}
}

View File

@ -11,7 +11,7 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
implementation project( ':hibernate-core' )
implementation "com.zaxxer:HikariCP:3.2.0"
implementation libs.hikaricp
testImplementation project( ':hibernate-testing' )
}

View File

@ -5,7 +5,7 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
api project( ':hibernate-core' )
api "javax.cache:cache-api:1.0.0"
api libs.jcache
testImplementation project( ':hibernate-testing' )

View File

@ -4,7 +4,7 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
implementation project( ':hibernate-core' )
implementation "io.micrometer:micrometer-core:1.6.1"
implementation libs.micrometer
testImplementation project( ':hibernate-testing' )

View File

@ -9,6 +9,7 @@ dependencies {
constraints {
api project( ":hibernate-core" )
api project( ":hibernate-testing" )
api project( ":hibernate-envers" )
api project( ":hibernate-spatial" )
@ -28,11 +29,36 @@ dependencies {
api project( ":hibernate-enhance-maven-plugin" )
api project( ":hibernate-ant" )
api libs.hcann
api jakartaLibs.jpa
api jakartaLibs.jta
api libs.byteBuddy
api "net.bytebuddy:byte-buddy-agent:${libs.versions.byteBuddy}"
runtime libs.antlr
runtime libs.logging
runtime libs.byteBuddy
runtime libs.byteBuddyAgent
runtime libs.jandex
runtime libs.classmate
runtime jakartaLibs.jaxb
runtime jakartaLibs.jaxbApi
runtime jakartaLibs.inject
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// todo : imo these are questionable
runtime libs.agroal
runtime libs.agroalPool
runtime libs.c3p0
runtime libs.hikaricp
runtime libs.proxool
runtime libs.vibur
runtime libs.jcache
runtime libs.micrometer
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
}

View File

@ -12,7 +12,7 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
implementation project( ':hibernate-core' )
implementation "proxool:proxool:0.8.3"
implementation libs.proxool
testImplementation project( ':hibernate-testing' )
}

View File

@ -9,13 +9,12 @@ description = 'Integration for Vibur Connection pooling as a Hibernate ORM Conne
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
implementation project( ':hibernate-core' )
implementation "org.vibur:vibur-dbcp:25.0"
implementation libs.vibur
testImplementation project( ':hibernate-testing' )
testImplementation "org.vibur:vibur-dbcp:25.0:tests"
testImplementation "org.vibur:vibur-dbcp:${libs.versions.vibur.get()}:tests"
testImplementation 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2'
}

View File

@ -61,11 +61,18 @@ dependencyResolutionManagement {
version( "hcann", "6.0.0.Final" )
version( "geolatte", "1.8.2" )
version( "byteBuddy", "1.12.9" )
version( "agroal", "1.14" )
version( "c3po", "0.9.5.5" )
version( "hikaricp", "3.2.0" )
version( "proxool", "0.8.3" )
version( "vibur", "25.0" )
version( "micrometer", "1.6.1" )
alias( "antlr" ).to( "org.antlr", "antlr4" ).versionRef( "antlr")
alias( "antlrRuntime" ).to( "org.antlr", "antlr4-runtime" ).versionRef( "antlr")
alias( "byteBuddy" ).to( "net.bytebuddy", "byte-buddy" ).versionRef( "byteBuddy" )
alias( "byteBuddyAgent" ).to( "net.bytebuddy", "byte-buddy-agent" ).versionRef( "byteBuddy" )
alias( "logging" ).to ( "org.jboss.logging", "jboss-logging" ).version( "3.4.3.Final" )
alias( "loggingAnnotations" ).to ( "org.jboss.logging", "jboss-logging-annotations" ).version( "2.2.1.Final" )
@ -82,7 +89,17 @@ dependencyResolutionManagement {
alias( "geolatte" ).to( "org.geolatte", "geolatte-geom" ).versionRef( "geolatte" )
alias( "jcache" ).to( "javax.cache", "cache-api" ).version( "1.0.0" )
alias( "ehcache3" ).to( "org.ehcache:ehcache:3.10.0-alpha0" )
alias( "agroal" ).to( "io.agroal", "agroal-api" ).versionRef( "agroal" )
alias( "agroalPool" ).to( "io.agroal", "agroal-pool" ).versionRef( "agroal" )
alias( "c3p0" ).to( "com.mchange", "c3p0" ).versionRef( "c3po" )
alias( "hikaricp" ).to( "com.zaxxer", "HikariCP" ).versionRef( "hikaricp" )
alias( "proxool" ).to( "proxool", "proxool" ).versionRef( "proxool" )
alias( "vibur" ).to( "org.vibur", "vibur-dbcp" ).versionRef( "vibur" )
alias( "micrometer" ).to ( "io.micrometer", "micrometer-core" ).versionRef( "micrometer" )
}
jakartaLibs {
version( "jaxbRuntime", "3.0.2" )