tidy up gradle scripts

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895321 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-25 10:31:50 +00:00
parent a3f0121147
commit 5022f30c4b
7 changed files with 13 additions and 11 deletions

View File

@ -124,6 +124,8 @@ subprojects {
hamcrestVersion = '2.2'
xmlbeansVersion = '5.0.2'
batikVersion = '1.14'
saxonVersion = '10.6'
apiGuardianVersion = '1.1.2'
JAVA9_SRC = 'src/main/java9'
JAVA9_OUT = "${buildDir}/classes/java9/main/"

View File

@ -47,7 +47,7 @@ dependencies {
testImplementation project(path: ':poi', configuration: 'tests')
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
}

View File

@ -47,10 +47,10 @@ dependencies {
}
testImplementation 'com.google.guava:guava:31.0.1-jre'
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
}

View File

@ -78,10 +78,10 @@ dependencies {
}
testImplementation project(path: ':poi-ooxml-lite-agent', configuration: 'archives')
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
}

View File

@ -131,7 +131,7 @@ dependencies {
}
testImplementation project(path:':poi', configuration:'tests')
testImplementation project(path:':poi-ooxml-lite-agent', configuration: 'archives')
testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
testImplementation 'org.xmlunit:xmlunit-core:2.8.3'
testImplementation 'org.reflections:reflections:0.10.2'
testImplementation 'org.openjdk.jmh:jmh-core:1.33'
@ -144,7 +144,7 @@ dependencies {
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
broken("org.apache.xmlgraphics:batik-script:${batikVersion}"){

View File

@ -45,10 +45,10 @@ dependencies {
testImplementation project(path: ':poi', configuration: 'tests')
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
javadocs project(':poi')

View File

@ -53,10 +53,10 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
if (SAXON_TEST) {
testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
}
// needed for locating the external references