}
}
}
+
+ // 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') {
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') {
}
}
- // 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') {
compile project(':main')
compile project(':ooxml')
}
+
+ japicmp.enabled = false
}
}
}
- // 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') {
exclude '**/*FileHandler.class'
exclude '**/RecordStresser.class'
}
+
+ japicmp.enabled = false
}
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'
}