summaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-02-14 14:04:17 +0000
committerPJ Fanning <fanningpj@apache.org>2020-02-14 14:04:17 +0000
commit33fdbda1b41254ea37134833d6fc46aa63ecc580 (patch)
tree65c8c5cd46dd3fbd09fa8164d942c95e0d538073 /build.gradle
parent03b79351475bac97f830f494cb8121b6d9c48627 (diff)
downloadpoi-33fdbda1b41254ea37134833d6fc46aa63ecc580.tar.gz
poi-33fdbda1b41254ea37134833d6fc46aa63ecc580.zip
try to gradle tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874022 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle32
1 files changed, 21 insertions, 11 deletions
diff --git a/build.gradle b/build.gradle
index b0a861e28e..0e397e724f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -92,7 +92,10 @@ subprojects {
version = '4.1.3-SNAPSHOT'
ext {
+ commonsCompressVersion = '1.19'
japicmpversion = '4.1.2'
+ junitVersion = '4.13'
+ xmlbeansVersion = '3.1.0'
}
tasks.withType(JavaCompile) {
@@ -187,7 +190,7 @@ project('main') {
implementation 'javax.activation:activation:1.1.1'
implementation 'com.zaxxer:SparseBitSet:1.2'
- testImplementation 'junit:junit:4.13'
+ testImplementation "junit:junit:${junitVersion}"
testImplementation 'org.mockito:mockito-core:3.2.4'
testImplementation 'org.reflections:reflections:0.9.11'
}
@@ -213,7 +216,7 @@ project('main') {
tests testJar
}
- japicmp.baseline = 'org.apache.poi:poi:' + japicmpversion + '@jar'
+ japicmp.baseline = "org.apache.poi:poi:${japicmpversion}@jar"
}
project('ooxml') {
@@ -230,10 +233,10 @@ project('ooxml') {
compileJava.dependsOn 'ant-compile-ooxml-xsds'
dependencies {
- implementation 'org.apache.xmlbeans:xmlbeans:3.1.0'
+ implementation "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}"
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-math3:3.6.1'
- implementation 'org.apache.commons:commons-compress:1.19'
+ implementation "org.apache.commons:commons-compress:${commonsCompressVersion}"
implementation 'org.apache.santuario:xmlsec:2.1.2'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.62'
implementation 'com.github.virtuald:curvesapi:1.06'
@@ -245,14 +248,14 @@ project('ooxml') {
implementation 'org.apache.xmlgraphics:xmlgraphics-commons:2.3'
// for ooxml-lite, should we move this somewhere else?
- implementation 'junit:junit:4.13'
+ implementation "junit:junit:${junitVersion}"
implementation project(':main')
implementation project(':scratchpad') // TODO: get rid of this dependency!
implementation files('../../ooxml-lib/ooxml-schemas-1.4.jar')
implementation files('../../ooxml-lib/ooxml-security-1.1.jar')
- testImplementation 'junit:junit:4.13'
+ testImplementation "junit:junit:${junitVersion}"
testImplementation 'org.mockito:mockito-core:3.2.4'
testImplementation 'org.xmlunit:xmlunit-core:2.5.1'
testImplementation 'org.reflections:reflections:0.9.11'
@@ -267,7 +270,7 @@ project('ooxml') {
}
}
- japicmp.baseline = 'org.apache.poi:poi-ooxml:' + japicmpversion + '@jar'
+ japicmp.baseline = "org.apache.poi:poi:${japicmpversion}@jar"
}
project('examples') {
@@ -276,6 +279,10 @@ project('examples') {
dependencies {
implementation project(':main')
implementation project(':ooxml')
+ implementation project(':scratchpad')
+ implementation "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}"
+ implementation files('../../ooxml-lib/ooxml-schemas-1.4.jar')
+ implementation "org.apache.commons:commons-compress:${commonsCompressVersion}"
}
japicmp.enabled = false
@@ -294,6 +301,7 @@ project('excelant') {
implementation project(':ooxml')
testImplementation project(path: ':main', configuration: 'tests')
+ testImplementation "junit:junit:${junitVersion}"
}
jar {
@@ -302,7 +310,7 @@ project('excelant') {
}
}
- japicmp.baseline = 'org.apache.poi:poi-excelant:' + japicmpversion + '@jar'
+ japicmp.baseline = "org.apache.poi:poi-excelant:${japicmpversion}@jar"
}
project('integrationtest') {
@@ -316,7 +324,9 @@ project('integrationtest') {
implementation project(':scratchpad')
implementation project(':examples')
- testImplementation 'junit:junit:4.13'
+ testImplementation "junit:junit:${junitVersion}"
+ testImplementation "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}"
+ testImplementation files('../../ooxml-lib/ooxml-schemas-1.4.jar')
}
jar {
@@ -353,7 +363,7 @@ project('scratchpad') {
// cyclic-dependency here: implementation project(':ooxml')
- testImplementation 'junit:junit:4.13'
+ testImplementation "junit:junit:${junitVersion}"
testImplementation 'org.mockito:mockito-core:3.2.4'
testImplementation project(path: ':main', configuration: 'tests')
}
@@ -364,5 +374,5 @@ project('scratchpad') {
}
}
- japicmp.baseline = 'org.apache.poi:poi-scratchpad:' + japicmpversion + '@jar'
+ japicmp.baseline = "org.apache.poi:poi:${japicmpversion}@jar"
}