use testLibs

This commit is contained in:
Jörg Prante 2023-12-04 20:53:12 +01:00
parent 923e63ccbe
commit 3b02aa2b75
7 changed files with 43 additions and 40 deletions

View file

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

View file

@ -3,8 +3,8 @@ dependencies {
testImplementation project(':graphics-vector-eps') testImplementation project(':graphics-vector-eps')
testImplementation project(':graphics-vector-pdf') testImplementation project(':graphics-vector-pdf')
testImplementation project(':graphics-vector-svg') testImplementation project(':graphics-vector-svg')
testImplementation libs.junit.jupiter.params testImplementation testLibs.junit.jupiter.params
testImplementation libs.junit4 testImplementation testLibs.junit4
testImplementation libs.zxing testImplementation testLibs.zxing
testImplementation libs.reflections testImplementation testLibs.reflections
} }

View file

@ -1,3 +1,3 @@
dependencies { dependencies {
testImplementation libs.junit.jupiter.vintage testImplementation testLibs.junit.jupiter.vintage
} }

View file

@ -4,16 +4,15 @@ dependencies {
api project(':graphics-pdfbox') api project(':graphics-pdfbox')
api project(':graphics-barcode') api project(':graphics-barcode')
api libs.groovy.xml api libs.groovy.xml
testRuntimeOnly libs.junit.jupiter.vintage testRuntimeOnly testLibs.junit.jupiter.vintage
testImplementation libs.groovy testImplementation testLibs.groovy
testImplementation libs.groovy.json testImplementation testLibs.groovy.json
testImplementation libs.groovy.nio testImplementation testLibs.groovy.nio
testImplementation libs.groovy.sql testImplementation testLibs.groovy.sql
testImplementation libs.groovy.xml testImplementation testLibs.groovy.macro
testImplementation libs.groovy.macro testImplementation testLibs.groovy.templates
testImplementation libs.groovy.templates testImplementation testLibs.groovy.test
testImplementation libs.groovy.test testImplementation testLibs.spock
testImplementation libs.spock testImplementation testLibs.bytebuddy
testImplementation libs.bytebuddy testImplementation testLibs.objenesis
testImplementation libs.objenesis
} }

View file

@ -1,5 +1,5 @@
dependencies { dependencies {
api libs.pdfbox api libs.pdfbox
testImplementation libs.jfreechart testImplementation testLibs.jfreechart
testImplementation project(':graphics-svg') testImplementation project(':graphics-svg')
} }

View file

@ -1,4 +1,4 @@
dependencies { dependencies {
testImplementation libs.junit.jupiter.params testImplementation testLibs.junit.jupiter.params
testImplementation libs.junit4 testImplementation testLibs.junit4
} }

View file

@ -16,11 +16,21 @@ dependencyResolutionManagement {
versionCatalogs { versionCatalogs {
libs { libs {
version('gradle', '8.4') version('gradle', '8.4')
version('groovy', '4.0.15')
version('datastructures', '5.0.5')
library('groovy', 'org.apache.groovy', 'groovy').versionRef('groovy')
library('groovy-xml', 'org.apache.groovy', 'groovy-xml').versionRef('groovy')
library('jna', 'net.java.dev.jna', 'jna').version('5.13.0')
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('4.0.0-SNAPSHOT')
library('datastructures-settings', 'org.xbib', 'settings-datastructures').versionRef('datastructures')
library('datastructures-settings-json', 'org.xbib', 'settings-datastructures-json').versionRef('datastructures')
library('datastructures-settings-yaml', 'org.xbib', 'settings-datastructures-yaml').versionRef('datastructures')
}
testLibs {
version('groovy', '4.0.15')
version('junit', '5.10.0') version('junit', '5.10.0')
version('junit4', '4.13.2') version('junit4', '4.13.2')
version('groovy', '4.0.15')
version('spock', '2.4-M1-groovy-4.0') version('spock', '2.4-M1-groovy-4.0')
version('datastructures', '5.0.5')
library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit') library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')
library('junit-jupiter-params', 'org.junit.jupiter', 'junit-jupiter-params').versionRef('junit') library('junit-jupiter-params', 'org.junit.jupiter', 'junit-jupiter-params').versionRef('junit')
library('junit-jupiter-engine', 'org.junit.jupiter', 'junit-jupiter-engine').versionRef('junit') library('junit-jupiter-engine', 'org.junit.jupiter', 'junit-jupiter-engine').versionRef('junit')
@ -29,24 +39,18 @@ dependencyResolutionManagement {
library('junit4', 'junit', 'junit').versionRef('junit4') library('junit4', 'junit', 'junit').versionRef('junit4')
library('hamcrest', 'org.hamcrest', 'hamcrest-library').version('2.2') library('hamcrest', 'org.hamcrest', 'hamcrest-library').version('2.2')
library('groovy', 'org.apache.groovy', 'groovy').versionRef('groovy') library('groovy', 'org.apache.groovy', 'groovy').versionRef('groovy')
library('groovy-xml', 'org.apache.groovy', 'groovy-xml').versionRef('groovy')
library('groovy-json', 'org.apache.groovy', 'groovy-json').versionRef('groovy') library('groovy-json', 'org.apache.groovy', 'groovy-json').versionRef('groovy')
library('groovy-nio', 'org.apache.groovy', 'groovy-nio').versionRef('groovy') library('groovy-nio', 'org.apache.groovy', 'groovy-nio').versionRef('groovy')
library('groovy-sql', 'org.apache.groovy', 'groovy-sql').versionRef('groovy') library('groovy-sql', 'org.apache.groovy', 'groovy-sql').versionRef('groovy')
library('groovy-macro', 'org.apache.groovy', 'groovy-macro').versionRef('groovy') library('groovy-macro', 'org.apache.groovy', 'groovy-macro').versionRef('groovy')
library('groovy-templates', 'org.apache.groovy', 'groovy-templates').versionRef('groovy') library('groovy-templates', 'org.apache.groovy', 'groovy-templates').versionRef('groovy')
library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy') // test only library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy')
library('spock', 'org.spockframework', 'spock-core').versionRef('spock') // test only library('spock', 'org.spockframework', 'spock-core').versionRef('spock')
library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4') // test only library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4')
library('objenesis', 'org.objenesis', 'objenesis').version('2.6') // test only library('objenesis', 'org.objenesis', 'objenesis').version('2.6')
library('jna', 'net.java.dev.jna', 'jna').version('5.13.0') library('zxing', 'com.google.zxing', 'javase').version('3.5.2')
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('4.0.0-SNAPSHOT') library('reflections', 'org.reflections', 'reflections').version('0.9.11')
library('zxing', 'com.google.zxing', 'javase').version('3.5.2') // test only library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2')
library('reflections', 'org.reflections', 'reflections').version('0.9.11') // test only
library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2') // test only
library('datastructures-settings', 'org.xbib', 'settings-datastructures').versionRef('datastructures')
library('datastructures-settings-json', 'org.xbib', 'settings-datastructures-json').versionRef('datastructures')
library('datastructures-settings-yaml', 'org.xbib', 'settings-datastructures-yaml').versionRef('datastructures')
} }
} }
} }