diff options
author | Dominik Stadler <centic@apache.org> | 2018-07-05 19:55:12 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2018-07-05 19:55:12 +0000 |
commit | 6c71dd178da55da7667480088d5ba1cabc81b9c2 (patch) | |
tree | 9d5fc2cccf78911619662b6e8bb336eae9cb1038 /build.gradle | |
parent | b6c148ceb85444fdc3b3da2a52c8e8cc1cdef1c8 (diff) | |
download | poi-6c71dd178da55da7667480088d5ba1cabc81b9c2.tar.gz poi-6c71dd178da55da7667480088d5ba1cabc81b9c2.zip |
Gradle: Define japicmp settings only once, but still fails due to removed classes in 4.0.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1835185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 59 |
1 files changed, 19 insertions, 40 deletions
diff --git a/build.gradle b/build.gradle index 859999411e..1be2664337 100644 --- a/build.gradle +++ b/build.gradle @@ -152,6 +152,17 @@ subprojects { } } } + + // japicmp will fail with "Could not load" because we moved some classes out of the root-package + // for Java 9 compatibility in 4.0.0 + task(japicmp, type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) { + to = jar.archivePath + onlyModified = true + onlyBinaryIncompatibleModified = true + failOnModification = false + txtOutputFile = file("$buildDir/reports/japi.txt") + htmlOutputFile = file("$buildDir/reports/japi.html") + } } project('main') { @@ -189,16 +200,7 @@ project('main') { tests testJar } - // TOOD: we should not duplicate this task in each project, but I did not figure out how to inject the artifactId for each project - task japicmp(type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) { - baseline = 'org.apache.poi:poi:' + japicmpversion + '@jar' - to = jar.archivePath - onlyModified = true - onlyBinaryIncompatibleModified = true - failOnModification = false - txtOutputFile = file("$buildDir/reports/japi.txt") - htmlOutputFile = file("$buildDir/reports/japi.html") - } + japicmp.baseline = 'org.apache.poi:poi:' + japicmpversion + '@jar' } project('ooxml') { @@ -244,16 +246,7 @@ project('ooxml') { } } - // TODO: we should not duplicate this task in each project, but I did not figure out how to inject the artifactId for each project - task japicmp(type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) { - baseline = 'org.apache.poi:poi-ooxml:' + japicmpversion + '@jar' - to = jar.archivePath - onlyModified = true - onlyBinaryIncompatibleModified = true - failOnModification = false - txtOutputFile = file("$buildDir/reports/japi.txt") - htmlOutputFile = file("$buildDir/reports/japi.html") - } + japicmp.baseline = 'org.apache.poi:poi-ooxml:' + japicmpversion + '@jar' } project('examples') { @@ -263,6 +256,8 @@ project('examples') { compile project(':main') compile project(':ooxml') } + + japicmp.enabled = false } @@ -286,16 +281,7 @@ project('excelant') { } } - // TOOD: we should not duplicate this task in each project, but I did not figure out how to inject the artifactId for each project - task japicmp(type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) { - baseline = 'org.apache.poi:poi-excelant:' + japicmpversion + '@jar' - to = jar.archivePath - onlyModified = true - onlyBinaryIncompatibleModified = true - failOnModification = false - txtOutputFile = file("$buildDir/reports/japi.txt") - htmlOutputFile = file("$buildDir/reports/japi.html") - } + japicmp.baseline = 'org.apache.poi:poi-excelant:' + japicmpversion + '@jar' } project('integrationtest') { @@ -330,6 +316,8 @@ project('integrationtest') { exclude '**/*FileHandler.class' exclude '**/RecordStresser.class' } + + japicmp.enabled = false } project('scratchpad') { @@ -351,14 +339,5 @@ project('scratchpad') { } } - // TOOD: we should not duplicate this task in each project, but I did not figure out how to inject the artifactId for each project - task japicmp(type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) { - baseline = 'org.apache.poi:poi-scratchpad:' + japicmpversion + '@jar' - to = jar.archivePath - onlyModified = true - onlyBinaryIncompatibleModified = true - failOnModification = false - txtOutputFile = file("$buildDir/reports/japi.txt") - htmlOutputFile = file("$buildDir/reports/japi.html") - } + japicmp.baseline = 'org.apache.poi:poi-scratchpad:' + japicmpversion + '@jar' } |