summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-11-25 10:31:50 +0000
committerPJ Fanning <fanningpj@apache.org>2021-11-25 10:31:50 +0000
commit5022f30c4bf1bd8ce2b6fd871c74ccb8a32b562d (patch)
tree50924e0f6cd08341d7e1a811d7c930ad75a807a8
parenta3f0121147c3fb708b17795e7906a92a2bde2331 (diff)
downloadpoi-5022f30c4bf1bd8ce2b6fd871c74ccb8a32b562d.tar.gz
poi-5022f30c4bf1bd8ce2b6fd871c74ccb8a32b562d.zip
tidy up gradle scripts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895321 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.gradle2
-rw-r--r--poi-examples/build.gradle2
-rw-r--r--poi-excelant/build.gradle4
-rw-r--r--poi-integration/build.gradle4
-rw-r--r--poi-ooxml/build.gradle4
-rw-r--r--poi-scratchpad/build.gradle4
-rw-r--r--poi/build.gradle4
7 files changed, 13 insertions, 11 deletions
diff --git a/build.gradle b/build.gradle
index da789acb7a..d59ecd7f69 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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/"
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle
index 97567a4927..f4a4a1d99d 100644
--- a/poi-examples/build.gradle
+++ b/poi-examples/build.gradle
@@ -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}"
}
}
diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle
index b59f595f8d..e31baeed0a 100644
--- a/poi-excelant/build.gradle
+++ b/poi-excelant/build.gradle
@@ -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}"
}
}
diff --git a/poi-integration/build.gradle b/poi-integration/build.gradle
index 7dc9f3ebe7..fafed12f3c 100644
--- a/poi-integration/build.gradle
+++ b/poi-integration/build.gradle
@@ -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}"
}
}
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index f8f2510a74..0411970d1d 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -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}"){
diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle
index d5276b8f22..803c8c6c49 100644
--- a/poi-scratchpad/build.gradle
+++ b/poi-scratchpad/build.gradle
@@ -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')
diff --git a/poi/build.gradle b/poi/build.gradle
index c741223f86..b2aa41d8bb 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -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