2016-11-01 15:55:47 +01:00
|
|
|
|
|
|
|
plugins {
|
2018-03-02 00:17:59 +01:00
|
|
|
id "org.sonarqube" version "2.6.1"
|
|
|
|
id "io.codearte.nexus-staging" version "0.11.0"
|
2016-11-01 15:55:47 +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 from: 'gradle/ext.gradle'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
wagon
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile "junit:junit:4.12"
|
2018-03-02 00:17:59 +01:00
|
|
|
testCompile "org.apache.logging.log4j:log4j-core:2.10.0"
|
|
|
|
testCompile "org.apache.logging.log4j:log4j-slf4j-impl:2.10.0"
|
|
|
|
wagon 'org.apache.maven.wagon:wagon-ssh:3.0.0'
|
2016-11-01 15:55:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:all" << "-profile" << "compact3"
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: classes) {
|
|
|
|
from javadoc
|
|
|
|
into "build/tmp"
|
|
|
|
classifier 'javadoc'
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
into "build/tmp"
|
|
|
|
classifier 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives javadocJar, sourcesJar
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('signing.keyId')) {
|
|
|
|
signing {
|
|
|
|
sign configurations.archives
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply from: 'gradle/publish.gradle'
|