]> source.dussan.org Git - poi.git/commitdiff
tidy up gradle scripts
authorPJ Fanning <fanningpj@apache.org>
Thu, 25 Nov 2021 10:31:50 +0000 (10:31 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 25 Nov 2021 10:31:50 +0000 (10:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895321 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
poi-examples/build.gradle
poi-excelant/build.gradle
poi-integration/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle

index da789acb7af5ecd9841ba4d52cf8f11f1687cd3a..d59ecd7f6959c495371dff1443f747ad84522b25 100644 (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/"
index 97567a4927eb698dafab1db9b07769d44baed605..f4a4a1d99dce2156e4f2a7e449578d242501b3cd 100644 (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}"
     }
 }
 
index b59f595f8dc9a148c99c690850296800a76facd7..e31baeed0aaf59407163a211bc7d3d37510b5e74 100644 (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}"
     }
 }
 
index 7dc9f3ebe72d037ef66318909437a971e3c9a60b..fafed12f3c58b3ab6b9ba6d13cfe31b4b6b82374 100644 (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}"
     }
 }
 
index f8f2510a74f865da195b389d6d696512e46fbf51..0411970d1d0270e15638366403d90ac66fd38708 100644 (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}"){
index d5276b8f22d1650f9366eb6357ff74d86b75797d..803c8c6c49aa02aa7cdda1c00f27bb5e9c87e754 100644 (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')
index c741223f8676f1c2939b3c8177d47bd70bc2f776..b2aa41d8bb709f2216dbf0c378abb9349bbd709e 100644 (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