plugins { id 'org.xbib.gradle.plugin.jflex' version '1.1.0' id 'org.xbib.gradle.plugin.jacc' version '1.1.3' id "org.sonarqube" version '2.2' } group = 'org.xbib' version = '1.0.0' apply plugin: 'java' apply plugin: 'maven' apply plugin: 'signing' apply plugin: 'findbugs' apply plugin: 'pmd' apply plugin: 'checkstyle' apply plugin: 'jacoco' repositories { mavenCentral() } configurations { wagon } dependencies { compile 'org.xbib:content-core:1.0.6' 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" } 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: 'gradle/ext.gradle' apply from: 'gradle/publish.gradle' apply from: 'gradle/sonarqube.gradle'