update to Gradle 8.5, use testLibs in version catalog for test dependencies

This commit is contained in:
Jörg Prante 2023-12-12 19:45:37 +01:00
parent f4f699088a
commit b296dd017b
11 changed files with 36 additions and 34 deletions

View file

@ -1,3 +1,3 @@
dependencies {
testImplementation libs.junit4
testImplementation testLibs.junit4
}

View file

@ -3,10 +3,10 @@ apply from: rootProject.file('gradle/test/jmh.gradle')
dependencies {
implementation libs.javassist
testImplementation libs.junit4
testImplementation libs.jackson
testImplementation libs.gson
jmhImplementation libs.gson
jmhImplementation libs.jackson.annotations
jmhImplementation libs.jackson.databind
testImplementation testLibs.junit4
testImplementation testLibs.jackson
testImplementation testLibs.gson
jmhImplementation testLibs.gson
jmhImplementation testLibs.jackson.annotations
jmhImplementation testLibs.jackson.databind
}

View file

@ -1,5 +1,5 @@
dependencies {
testImplementation(libs.mockito.core) {
testImplementation(testLibs.mockito.core) {
exclude group: 'org.hamcrest'
}
}

View file

@ -1,9 +1,9 @@
dependencies {
testImplementation libs.junit4
testImplementation libs.google.truth
testImplementation libs.burst.junit4
testImplementation libs.okio
testRuntimeOnly libs.junit.vintage.engine
testImplementation testLibs.junit4
testImplementation testLibs.google.truth
testImplementation testLibs.burst.junit4
testImplementation testLibs.okio
testRuntimeOnly testLibs.junit.vintage.engine
}
test {

View file

@ -1,5 +1,5 @@
dependencies {
testImplementation(libs.mockito.core) {
testImplementation(testLibs.mockito.core) {
exclude group: 'org.hamcrest'
}
}

View file

@ -1,4 +1,4 @@
dependencies {
testImplementation libs.assertj
testImplementation libs.compile.testing
testImplementation testLibs.assertj
testImplementation testLibs.compile.testing
}

View file

@ -1,5 +1,5 @@
group = org.xbib
name = datastructures
version = 5.0.5
version = 5.0.6
org.gradle.warning.mode = all

View file

@ -1,10 +1,10 @@
dependencies {
testImplementation libs.junit.jupiter.api
testImplementation libs.junit.jupiter.params
testImplementation libs.hamcrest
testRuntimeOnly libs.junit.jupiter.engine
testRuntimeOnly libs.junit.jupiter.platform.launcher
testImplementation testLibs.junit.jupiter.api
testImplementation testLibs.junit.jupiter.params
testImplementation testLibs.hamcrest
testRuntimeOnly testLibs.junit.jupiter.engine
testRuntimeOnly testLibs.junit.jupiter.platform.launcher
}
test {

Binary file not shown.

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View file

@ -15,7 +15,13 @@ pluginManagement {
dependencyResolutionManagement {
versionCatalogs {
libs {
version('gradle', '8.4-rc-1')
version('gradle', '8.5')
library('chronicle-core', 'net.openhft', 'chronicle-core').version('2.21ea14')
library('affinity', 'net.openhft', 'affinity').version('3.21ea0')
library('javassist', 'org.javassist', 'javassist').version('3.29.1-GA')
library('orgjson', 'org.json', 'json').version('20210307')
}
testLibs {
version('junit', '5.10.0')
version('jackson', '2.15.2')
library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')
@ -25,20 +31,16 @@ dependencyResolutionManagement {
library('junit-jupiter-platform-launcher', 'org.junit.platform', 'junit-platform-launcher').version('1.10.0')
library('hamcrest', 'org.hamcrest', 'hamcrest-library').version('2.2')
library('junit4', 'junit', 'junit').version('4.13.2')
library('chronicle-core', 'net.openhft', 'chronicle-core').version('2.21ea14')
library('affinity', 'net.openhft', 'affinity').version('3.21ea0')
library('javassist', 'org.javassist', 'javassist').version('3.29.1-GA')
library('burst-junit4', 'com.squareup.burst', 'burst-junit4').version('1.1.1')
library('mockito-core', 'org.mockito', 'mockito-core').version('3.12.4')
library('google-truth', 'com.google.truth', 'truth').version('0.32')
library('okio', 'com.squareup.okio', 'okio').version('1.13.0')
library('assertj', 'org.assertj', 'assertj-core').version('3.22.0')
library('compile-testing', 'com.google.testing.compile', 'compile-testing').version('0.19')
library('jackson', 'com.fasterxml.jackson.core', 'jackson-databind').versionRef('jackson')
library('jackson-annotations', 'com.fasterxml.jackson.core', 'jackson-annotations').versionRef('jackson')
library('jackson-databind', 'com.fasterxml.jackson.core', 'jackson-databind').versionRef('jackson')
library('gson', 'com.google.code.gson', 'gson').version('2.8.9')
library('orgjson', 'org.json', 'json').version('20210307')
library('mockito-core', 'org.mockito', 'mockito-core').version('3.12.4')
library('google-truth', 'com.google.truth', 'truth').version('0.32')
library('burst-junit4', 'com.squareup.burst', 'burst-junit4').version('1.1.1')
library('okio', 'com.squareup.okio', 'okio').version('1.13.0')
library('assertj', 'org.assertj', 'assertj-core').version('3.22.0')
library('compile-testing', 'com.google.testing.compile', 'compile-testing').version('0.19')
}
}
}