2016-01-07 19:22:16 +01:00
|
|
|
|
2016-11-23 14:12:19 +01:00
|
|
|
plugins {
|
|
|
|
id "org.sonarqube" version "2.2"
|
|
|
|
id "org.ajoberstar.github-pages" version "1.6.0-rc.1"
|
|
|
|
id "org.xbib.gradle.plugin.jbake" version "1.2.1"
|
|
|
|
}
|
|
|
|
|
2016-05-09 09:22:43 +02:00
|
|
|
group = 'org.xbib'
|
2016-11-23 14:12:19 +01:00
|
|
|
version = '4.0.3'
|
2016-01-07 19:22:16 +01:00
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
2016-11-23 14:12:19 +01:00
|
|
|
apply plugin: 'signing'
|
|
|
|
apply plugin: 'findbugs'
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
apply plugin: 'checkstyle'
|
|
|
|
apply plugin: "jacoco"
|
2016-01-07 19:22:16 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
wagon
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile "javax.inject:javax.inject:1"
|
2016-10-18 09:35:11 +02:00
|
|
|
compile 'org.xbib:jsr-305:1.0.0'
|
2016-11-23 14:12:19 +01:00
|
|
|
compile "com.google.guava:guava:20.0"
|
2016-01-07 19:22:16 +01:00
|
|
|
testCompile "junit:junit:4.12"
|
2016-11-23 14:12:19 +01:00
|
|
|
testCompile "org.apache.logging.log4j:log4j-slf4j-impl:2.7"
|
|
|
|
testCompile "org.apache.logging.log4j:log4j-core:2.7"
|
2016-01-07 19:22:16 +01:00
|
|
|
testCompile "javax.inject:javax.inject-tck:1"
|
|
|
|
testCompile "com.google.guava:guava-testlib:19.0"
|
|
|
|
wagon 'org.apache.maven.wagon:wagon-ssh-external:2.10'
|
|
|
|
}
|
|
|
|
|
2016-11-23 14:12:19 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2016-01-07 19:22:16 +01:00
|
|
|
|
2016-11-23 14:12:19 +01:00
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:all" << "-profile" << "compact1"
|
2016-01-07 19:22:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
exclude '*$*'
|
|
|
|
exclude '**/ErrorHandlingTest*'
|
|
|
|
exclude '**/OSGiContainerTest*'
|
|
|
|
exclude '**/ScopesTest*'
|
|
|
|
exclude '**/TypeConversionTest*'
|
|
|
|
testLogging {
|
|
|
|
showStandardStreams = false
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier 'sources'
|
2016-11-23 14:12:19 +01:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier 'javadoc'
|
2016-01-07 19:22:16 +01:00
|
|
|
}
|
|
|
|
artifacts {
|
2016-11-23 14:12:19 +01:00
|
|
|
archives sourcesJar, javadocJar
|
2016-01-07 19:22:16 +01:00
|
|
|
}
|
2016-11-23 14:12:19 +01:00
|
|
|
if (project.hasProperty('signing.keyId')) {
|
|
|
|
signing {
|
|
|
|
sign configurations.archives
|
2016-01-07 19:22:16 +01:00
|
|
|
}
|
|
|
|
}
|
2016-11-23 14:12:19 +01:00
|
|
|
|
|
|
|
apply from: "${rootProject.projectDir}/gradle/ext.gradle"
|
|
|
|
apply from: "${rootProject.projectDir}/gradle/publish.gradle"
|
|
|
|
apply from: "${rootProject.projectDir}/gradle/sonarqube.gradle"
|