final String TEST9_OUT = "${buildDir}/classes/java9/test/"
final String VERSIONS9 = 'META-INF/versions/9'
+configurations {
+ tests
+}
+
sourceSets {
main {
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
}
}
-configurations {
- tests
-}
-
dependencies {
api 'org.apache.ant:ant:1.10.9'
"-javaagent:${OOXML_LITE_AGENT}=${OOXML_LITE_REPORT}|${OOXML_LITE_INCLUDES}",
'-Djunit.jupiter.execution.parallel.enabled=true',
'-Djunit.jupiter.execution.parallel.config.strategy=fixed',
- '-Djunit.jupiter.execution.parallel.config.fixed.parallelism=3',
+ '-Djunit.jupiter.execution.parallel.config.fixed.parallelism=3'
// -Xjit:verbose={compileStart|compileEnd},vlog=build/jit.log${no.jit.sherlock} ... if ${isIBMVM}
]
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
'-Dsun.reflect.debugModuleAccessChecks=true',
'-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true',
'--illegal-access=warn',
+
'--add-modules', MODULE_NAME,
// see https://github.com/java9-modularity/gradle-modules-plugin/issues/97
final String TEST9_OUT = "${buildDir}/classes/java9/test/"
final String VERSIONS9 = 'META-INF/versions/9'
+configurations {
+ tests
+}
+
sourceSets {
test {
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
}
}
-configurations {
- tests
-}
-
-
dependencies {
testImplementation 'org.apache.ant:ant:1.10.9'
testImplementation 'org.apache.commons:commons-collections4:4.4'
into(TEST9_SRC)
}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
final String TEST9_OUT = "${buildDir}/classes/java9/test/"
final String VERSIONS9 = 'META-INF/versions/9'
+configurations {
+ all {
+ exclude group: 'xalan', module: 'xalan'
+ if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
+ exclude group: 'xml-apis', module: 'xml-apis'
+ }
+ }
+ broken
+ tests
+ javadocs
+}
+
sourceSets {
main {
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
}
}
-configurations {
- all {
- exclude group: 'xalan', module: 'xalan'
- if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
- exclude group: 'xml-apis', module: 'xml-apis'
- }
- }
- broken
- tests
- javadocs
-}
-
dependencies {
api project(':poi')
api project(':poi-ooxml-full')
}
}
-
sourcesJar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
exclude 'META-INF/services/**'
// for some reason catching the OOM does not work when run from Gradle
exclude '**/MemoryUsage.class'
- dependsOn 'testJar'
+ dependsOn { testJar }
useJUnitPlatform()
exclude 'META-INF/services/**'
}
+javadoc {
+ failOnError = true
+ doFirst {
+ options {
+ if (JavaVersion.current().isJava9Compatible()) {
+ addBooleanOption('html5', true)
+ }
+ links 'https://poi.apache.org/apidocs/dev/'
+ links 'https://docs.oracle.com/javase/8/docs/api/'
+ use = true
+ splitIndex = true
+ source = "1.8"
+ classpath += configurations.javadocs.files
+ }
+ }
+}
+
artifacts {
tests testJar
}
test {
- dependsOn 'testJar'
+ dependsOn { testJar }
useJUnitPlatform()
'-ea',
'-Djunit.jupiter.execution.parallel.enabled=true',
'-Djunit.jupiter.execution.parallel.config.strategy=fixed',
- '-Djunit.jupiter.execution.parallel.config.fixed.parallelism=3',
+ '-Djunit.jupiter.execution.parallel.config.fixed.parallelism=3'
// -Xjit:verbose={compileStart|compileEnd},vlog=build/jit.log${no.jit.sherlock} ... if ${isIBMVM}
]
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
}
}
-javadoc {
- failOnError = true
- doFirst {
- options {
- if (JavaVersion.current().isJava9Compatible()) {
- addBooleanOption('html5', true)
- }
- links 'https://poi.apache.org/apidocs/dev/'
- links 'https://docs.oracle.com/javase/8/docs/api/'
- use = true
- splitIndex = true
- source = "1.8"
- classpath += configurations.javadocs.files
- }
- }
-}
-
publishing {
publications {
POI(MavenPublication) {
withSourcesJar()
}
-
task compileJava9(type: JavaCompile) {
dependsOn 'compileJava'
into(TEST9_SRC)
}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
exclude 'META-INF/services/**'
}
+javadoc {
+ failOnError = true
+ doFirst {
+ options {
+ if (JavaVersion.current().isJava9Compatible()) {
+ addBooleanOption('html5', true)
+ }
+ links 'https://poi.apache.org/apidocs/dev/'
+ links 'https://docs.oracle.com/javase/8/docs/api/'
+ use = true
+ splitIndex = true
+ source = "1.8"
+ classpath += configurations.javadocs.files
+ }
+ }
+}
+
+artifacts {
+ tests testJar
+}
+
test {
- dependsOn 'testJar'
+ dependsOn { testJar }
useJUnitPlatform()
'--illegal-access=warn',
'--add-modules', MODULE_NAME,
+
// see https://github.com/java9-modularity/gradle-modules-plugin/issues/97
// opposed to the recommendation there, it doesn't work to add ... to the dependencies
// testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.7.1'
}
}
-javadoc {
- failOnError = true
- doFirst {
- options {
- if (JavaVersion.current().isJava9Compatible()) {
- addBooleanOption('html5', true)
- }
- links 'https://poi.apache.org/apidocs/dev/'
- links 'https://docs.oracle.com/javase/8/docs/api/'
- use = true
- splitIndex = true
- source = "1.8"
- classpath += configurations.javadocs.files
- }
- }
-}
-
-artifacts {
- tests testJar
-}
-
publishing {
publications {
POI(MavenPublication) {