2016-10-23 13:49:27 +00:00
|
|
|
/*
|
2016-12-23 07:45:26 +00:00
|
|
|
* Configuration of Java compiler, Javadoc, additional archives, and additional dependency configurations.
|
2016-10-23 13:49:27 +00:00
|
|
|
*/
|
|
|
|
|
2016-12-23 09:18:28 +00:00
|
|
|
sourceCompatibility = '1.8'
|
2016-06-09 13:48:56 +00:00
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'ISO-8859-1'
|
2019-08-13 14:48:55 +00:00
|
|
|
options.compilerArgs << '-parameters'
|
2016-06-09 13:48:56 +00:00
|
|
|
}
|
|
|
|
|
2016-06-15 09:03:53 +00:00
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
options.encoding = 'ISO-8859-1'
|
|
|
|
options.tags = [ 'noreference', 'noextend', 'noimplement', 'noinstantiate', 'nooverride', 'model', 'generated', 'ordered' ]
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|
|
|
|
|
2016-12-23 07:45:26 +00:00
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
group 'Build'
|
|
|
|
description 'Assembles a jar archive containing the sources.'
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
from ('.') {
|
|
|
|
include 'schema/**', 'model/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
artifacts.archives sourcesJar
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
group 'Build'
|
|
|
|
description 'Assembles a jar archive containing the JavaDoc output.'
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
|
|
|
}
|
|
|
|
|
2016-06-09 13:48:56 +00:00
|
|
|
configurations {
|
2016-09-14 14:00:10 +00:00
|
|
|
optional {
|
|
|
|
description 'Dependencies required at build time, but not exported into meta data'
|
|
|
|
extendsFrom compile
|
|
|
|
}
|
|
|
|
|
2016-12-23 07:45:26 +00:00
|
|
|
// Put any unwanted transitive dependencies here, they will be excluded from all projects.
|
2016-09-14 14:00:10 +00:00
|
|
|
all {
|
|
|
|
exclude group: 'org.apache.felix', module: 'org.osgi.foundation'
|
2016-06-09 13:48:56 +00:00
|
|
|
exclude group: 'org.antlr', module: 'stringtemplate'
|
|
|
|
exclude module: 'cglib'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-09 14:56:05 +00:00
|
|
|
sourceSets.main.compileClasspath += configurations.optional
|
2016-06-17 16:07:05 +00:00
|
|
|
sourceSets.test.compileClasspath += configurations.optional
|
|
|
|
sourceSets.test.runtimeClasspath += configurations.optional
|
2016-06-10 15:52:23 +00:00
|
|
|
javadoc.classpath += configurations.optional
|
2017-09-05 13:02:42 +00:00
|
|
|
|
|
|
|
if (findProperty('ignoreTestFailures') == 'true') {
|
|
|
|
tasks.withType(Test) {
|
|
|
|
ignoreFailures = true
|
|
|
|
}
|
|
|
|
}
|