2016-11-02 11:46:35 +01:00
|
|
|
plugins {
|
|
|
|
id "org.sonarqube" version "2.2"
|
|
|
|
id 'org.ajoberstar.github-pages' version '1.6.0-rc.1'
|
2016-11-30 14:28:23 +01:00
|
|
|
id "org.xbib.gradle.plugin.jbake" version "1.2.1"
|
2016-11-02 11:46:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
printf "Host: %s\nOS: %s %s %s\nJVM: %s %s %s %s\nGroovy: %s\nGradle: %s\n" +
|
|
|
|
"Build: group: ${project.group} name: ${project.name} version: ${project.version}\n",
|
|
|
|
InetAddress.getLocalHost(),
|
|
|
|
System.getProperty("os.name"),
|
|
|
|
System.getProperty("os.arch"),
|
|
|
|
System.getProperty("os.version"),
|
|
|
|
System.getProperty("java.version"),
|
|
|
|
System.getProperty("java.vm.version"),
|
|
|
|
System.getProperty("java.vm.vendor"),
|
|
|
|
System.getProperty("java.vm.name"),
|
|
|
|
GroovySystem.getVersion(),
|
|
|
|
gradle.gradleVersion
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
apply plugin: 'findbugs'
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
apply plugin: 'checkstyle'
|
|
|
|
apply plugin: "jacoco"
|
|
|
|
apply plugin: 'org.ajoberstar.github-pages'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
wagon
|
|
|
|
provided
|
|
|
|
testCompile.extendsFrom(provided)
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
testCompile 'org.apache.logging.log4j:log4j-core:2.7'
|
|
|
|
testCompile 'org.apache.logging.log4j:log4j-jul:2.7'
|
|
|
|
wagon 'org.apache.maven.wagon:wagon-ssh-external:2.10'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:all" << "-profile" << "compact2"
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
testLogging {
|
|
|
|
showStandardStreams = false
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
systemProperty 'java.util.logging.manager', 'org.apache.logging.log4j.jul.LogManager'
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier 'javadoc'
|
|
|
|
}
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar, javadocJar
|
|
|
|
}
|
|
|
|
if (project.hasProperty('signing.keyId')) {
|
|
|
|
signing {
|
|
|
|
sign configurations.archives
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply from: 'gradle/ext.gradle'
|
|
|
|
apply from: 'gradle/publish.gradle'
|
|
|
|
apply from: 'gradle/sonarqube.gradle'
|