content/build.gradle

74 lines
1.7 KiB
Groovy
Raw Normal View History

2016-10-03 14:25:26 +02:00
plugins {
2016-10-29 20:00:22 +02:00
id "org.sonarqube" version "2.2"
2016-10-03 14:25:26 +02:00
id "org.ajoberstar.github-pages" version "1.6.0-rc.1"
id "org.xbib.gradle.plugin.jbake" version "1.2.1"
2016-10-03 14:25:26 +02:00
}
2016-10-29 20:00:22 +02:00
ext {
versions = [
2016-11-02 22:05:50 +01:00
'jackson' : '2.8.4'
2016-10-29 20:00:22 +02:00
]
}
2016-10-03 14:25:26 +02:00
apply plugin: 'build-dashboard'
2016-10-03 14:25:26 +02:00
allprojects {
2016-10-29 20:00:22 +02:00
2016-10-03 14:25:26 +02:00
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
apply plugin: "jacoco"
2016-11-02 22:14:50 +01:00
repositories {
mavenCentral()
}
2016-10-03 14:25:26 +02:00
configurations {
wagon
}
dependencies {
testCompile 'junit:junit:4.12'
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" << "compact1"
2016-10-03 14:25:26 +02:00
}
2016-10-29 20:00:22 +02:00
2016-10-03 14:25:26 +02:00
test {
testLogging {
showStandardStreams = false
exceptionFormat = 'full'
}
}
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: "${rootProject.projectDir}/gradle/ext.gradle"
apply from: "${rootProject.projectDir}/gradle/publish.gradle"
2016-10-29 20:00:22 +02:00
apply from: "${rootProject.projectDir}/gradle/sonarqube.gradle"
2016-10-03 14:25:26 +02:00
}