From fffa2f45eb89b98de711b35f52cd5ebd853b302f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Tue, 10 Jul 2018 14:41:20 +0200 Subject: [PATCH] update xbib-net to 1.1.1, gradle 4.8.1 --- build.gradle | 14 +- .../checkstyle/checkstyle.xml | 0 content-csv/config/checkstyle/checkstyle.xml | 323 ------------------ content-json/config/checkstyle/checkstyle.xml | 323 ------------------ .../config/checkstyle/checkstyle.xml | 323 ------------------ content-rdf/config/checkstyle/checkstyle.xml | 323 ------------------ .../config/checkstyle/checkstyle.xml | 323 ------------------ content-xml/config/checkstyle/checkstyle.xml | 323 ------------------ content-yaml/config/checkstyle/checkstyle.xml | 323 ------------------ gradle.properties | 4 +- gradle/ext.gradle | 8 - gradle/publish.gradle | 9 +- gradle/{sonarqube.gradle => qa.gradle} | 24 +- 13 files changed, 29 insertions(+), 2291 deletions(-) rename {content-core/config => config}/checkstyle/checkstyle.xml (100%) delete mode 100644 content-csv/config/checkstyle/checkstyle.xml delete mode 100644 content-json/config/checkstyle/checkstyle.xml delete mode 100644 content-language/config/checkstyle/checkstyle.xml delete mode 100644 content-rdf/config/checkstyle/checkstyle.xml delete mode 100644 content-resource/config/checkstyle/checkstyle.xml delete mode 100644 content-xml/config/checkstyle/checkstyle.xml delete mode 100644 content-yaml/config/checkstyle/checkstyle.xml delete mode 100644 gradle/ext.gradle rename gradle/{sonarqube.gradle => qa.gradle} (82%) 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/" } }