From 6809bd762ac76fed79b5b99a594b0c9bc21cb99b Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Fri, 25 Oct 2019 16:45:17 +0200 Subject: [PATCH] Changed to java-api type --- build.gradle | 54 +++++++++---------- gradle.properties | 2 +- .../pojo/AccountingDocumentSummary.java | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/build.gradle b/build.gradle index 612601d..2268270 100644 --- a/build.gradle +++ b/build.gradle @@ -4,12 +4,12 @@ buildscript { } dependencies { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' - //classpath 'com.bmuschko:gradle-clover-plugin:2.2.3' + //classpath 'com.bmuschko:gradle-clover-plugin:2.2.3' } } apply plugin: "idea" -apply plugin: "java" +apply plugin: "java-library" apply plugin: "groovy" apply plugin: 'maven' apply plugin: 'jacoco' @@ -27,8 +27,8 @@ repositories { dependencies { implementation("org.slf4j:slf4j-api:${slf4jVersion}") - implementation('com.google.code.gson:gson:2.8.5') - implementation("com.squareup.okhttp3:okhttp:4.1.0") + api("com.google.code.gson:gson:2.8.5") + api("com.squareup.okhttp3:okhttp:4.1.0") testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}") testImplementation('com.squareup.okhttp3:mockwebserver:4.1.0') @@ -74,32 +74,32 @@ jacoco { jacocoTestReport { group = "verification" - reports { - xml.enabled false - csv.enabled false - html.destination file("${buildDir}/reports/coverage") - } - afterEvaluate { - classDirectories.setFrom(files(classDirectories.files.collect { - fileTree(dir: it, exclude: 'biz/nellemann/libcvrapi/pojo/**') - })) - } + reports { + xml.enabled false + csv.enabled false + html.destination file("${buildDir}/reports/coverage") + } + afterEvaluate { + classDirectories.setFrom(files(classDirectories.files.collect { + fileTree(dir: it, exclude: 'biz/nellemann/libcvrapi/pojo/**') + })) + } } test.finalizedBy jacocoTestReport jacocoTestCoverageVerification { - violationRules { - rule { - element = 'CLASS' - limit { - counter = 'LINE' - value = 'COVEREDRATIO' - minimum = 0.7 - } - excludes = [ - 'biz.nellemann.libcvrapi.pojo.*' - ] - } - } + violationRules { + rule { + element = 'CLASS' + limit { + counter = 'LINE' + value = 'COVEREDRATIO' + minimum = 0.7 + } + excludes = [ + 'biz.nellemann.libcvrapi.pojo.*' + ] + } + } } check.dependsOn jacocoTestCoverageVerification diff --git a/gradle.properties b/gradle.properties index e8ae137..81429ee 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ id = libcvrapi group = biz.nellemann.libs -version = 1.0.3 +version = 1.0.4 licenses = ['APACHE-2.0'] // or something else groovyVersion = 2.5.8 slf4jVersion = 1.7.28 diff --git a/src/main/java/biz/nellemann/libcvrapi/pojo/AccountingDocumentSummary.java b/src/main/java/biz/nellemann/libcvrapi/pojo/AccountingDocumentSummary.java index 8a9eb80..5d34344 100644 --- a/src/main/java/biz/nellemann/libcvrapi/pojo/AccountingDocumentSummary.java +++ b/src/main/java/biz/nellemann/libcvrapi/pojo/AccountingDocumentSummary.java @@ -29,7 +29,7 @@ public class AccountingDocumentSummary { BigDecimal grossprofitloss; BigDecimal profitloss; BigDecimal equity; - Integer averagenumberofemployees; + BigDecimal averagenumberofemployees; /* TODO: Add fields if needed "employeebenefitsexpense": "-27446000",