diff --git a/build.gradle b/build.gradle
index 0fd1830..743b472 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,9 +20,8 @@ printf "Host: %s\nOS: %s %s %s\nJVM: %s %s %s %s\nGradle: %s Groovy: %s Java: %s
JavaVersion.current()
apply plugin: 'build-dashboard'
-apply plugin: "io.codearte.nexus-staging"
-allprojects {
+subprojects {
apply plugin: 'java'
apply plugin: 'maven'
@@ -30,7 +29,6 @@ allprojects {
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
- apply plugin: "jacoco"
apply plugin: 'org.xbib.gradle.plugin.asciidoctor'
repositories {
@@ -44,6 +42,7 @@ allprojects {
dependencies {
testCompile "junit:junit:${project.property('junit.version')}"
+ asciidoclet "org.asciidoctor:asciidoclet:${project.property('asciidoclet.version')}"
wagon "org.apache.maven.wagon:wagon-ssh:${project.property('wagon.version')}"
}
@@ -52,7 +51,7 @@ allprojects {
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:all" //<< "--release" << "8"// << "-profile" << "compact1"
+ options.compilerArgs << "-Xlint:all" << "-profile" << "compact1"
}
jar {
@@ -91,8 +90,11 @@ allprojects {
}
}
- apply from: "${rootProject.projectDir}/gradle/ext.gradle"
apply from: "${rootProject.projectDir}/gradle/publish.gradle"
- apply from: "${rootProject.projectDir}/gradle/sonarqube.gradle"
+ apply from: "${rootProject.projectDir}/gradle/qa.gradle"
}
+
+nexusStaging {
+ packageGroup = "org.xbib"
+}
diff --git a/content-core/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
similarity index 100%
rename from content-core/config/checkstyle/checkstyle.xml
rename to config/checkstyle/checkstyle.xml
diff --git a/content-csv/config/checkstyle/checkstyle.xml b/content-csv/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-csv/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-json/config/checkstyle/checkstyle.xml b/content-json/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-json/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-language/config/checkstyle/checkstyle.xml b/content-language/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-language/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-rdf/config/checkstyle/checkstyle.xml b/content-rdf/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-rdf/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-resource/config/checkstyle/checkstyle.xml b/content-resource/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-resource/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-xml/config/checkstyle/checkstyle.xml b/content-xml/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-xml/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content-yaml/config/checkstyle/checkstyle.xml b/content-yaml/config/checkstyle/checkstyle.xml
deleted file mode 100644
index 52fe33c..0000000
--- a/content-yaml/config/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,323 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gradle.properties b/gradle.properties
index 3f0baae..ec85a48 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,8 +1,8 @@
group = org.xbib
name = content
-version = 1.3.0
+version = 1.3.1
-xbib-net.version = 1.1.0
+xbib-net.version = 1.1.1
jackson.version = 2.8.11
junit.version = 4.12
hamcrest.version = 1.3
diff --git a/gradle/ext.gradle b/gradle/ext.gradle
deleted file mode 100644
index 6d3ed1f..0000000
--- a/gradle/ext.gradle
+++ /dev/null
@@ -1,8 +0,0 @@
-ext {
- user = 'xbib'
- projectName = 'content'
- projectDescription = 'Content processing library for Java'
- scmUrl = 'https://github.com/xbib/content'
- scmConnection = 'scm:git:git://github.com/xbib/content.git'
- scmDeveloperConnection = 'scm:git:git://github.com/xbib/content.git'
-}
diff --git a/gradle/publish.gradle b/gradle/publish.gradle
index 7bf8ad6..58ed326 100644
--- a/gradle/publish.gradle
+++ b/gradle/publish.gradle
@@ -1,4 +1,11 @@
+ext {
+ projectDescription = 'Content processing library for Java'
+ scmUrl = 'https://github.com/xbib/content'
+ scmConnection = 'scm:git:git://github.com/xbib/content.git'
+ scmDeveloperConnection = 'scm:git:git://github.com/xbib/content.git'
+}
+
task xbibUpload(type: Upload, dependsOn: build) {
group = 'publish'
configuration = configurations.archives
@@ -44,7 +51,7 @@ task sonatypeUpload(type: Upload, dependsOn: build) {
}
developers {
developer {
- id user
+ id 'xbib'
name 'Jörg Prante'
email 'joergprante@gmail.com'
url 'https://github.com/jprante'
diff --git a/gradle/sonarqube.gradle b/gradle/qa.gradle
similarity index 82%
rename from gradle/sonarqube.gradle
rename to gradle/qa.gradle
index 3985a4f..98fed8d 100644
--- a/gradle/sonarqube.gradle
+++ b/gradle/qa.gradle
@@ -1,3 +1,10 @@
+tasks.withType(Checkstyle) {
+ ignoreFailures = true
+ reports {
+ xml.enabled = true
+ html.enabled = true
+ }
+}
tasks.withType(FindBugs) {
ignoreFailures = true
reports {
@@ -12,19 +19,11 @@ tasks.withType(Pmd) {
html.enabled = true
}
}
-tasks.withType(Checkstyle) {
- ignoreFailures = true
- reports {
- xml.enabled = true
- html.enabled = true
- }
-}
-jacocoTestReport {
- reports {
- xml.enabled = true
- csv.enabled = false
- }
+checkstyle {
+ configFile = rootProject.file('config/checkstyle/checkstyle.xml')
+ ignoreFailures = true
+ showViolations = true
}
sonarqube {
@@ -33,7 +32,6 @@ sonarqube {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.tests", "src/test/java"
property "sonar.scm.provider", "git"
- property "sonar.java.coveragePlugin", "jacoco"
property "sonar.junit.reportsPath", "build/test-results/test/"
}
}