Changed to java-api type

This commit is contained in:
Mark Nellemann 2019-10-25 16:45:17 +02:00
parent ba62652a05
commit 6809bd762a
3 changed files with 29 additions and 29 deletions

View File

@ -4,12 +4,12 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' 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: "idea"
apply plugin: "java" apply plugin: "java-library"
apply plugin: "groovy" apply plugin: "groovy"
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'jacoco' apply plugin: 'jacoco'
@ -27,8 +27,8 @@ repositories {
dependencies { dependencies {
implementation("org.slf4j:slf4j-api:${slf4jVersion}") implementation("org.slf4j:slf4j-api:${slf4jVersion}")
implementation('com.google.code.gson:gson:2.8.5') api("com.google.code.gson:gson:2.8.5")
implementation("com.squareup.okhttp3:okhttp:4.1.0") api("com.squareup.okhttp3:okhttp:4.1.0")
testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}") testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}")
testImplementation('com.squareup.okhttp3:mockwebserver:4.1.0') testImplementation('com.squareup.okhttp3:mockwebserver:4.1.0')
@ -74,32 +74,32 @@ jacoco {
jacocoTestReport { jacocoTestReport {
group = "verification" group = "verification"
reports { reports {
xml.enabled false xml.enabled false
csv.enabled false csv.enabled false
html.destination file("${buildDir}/reports/coverage") html.destination file("${buildDir}/reports/coverage")
} }
afterEvaluate { afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect { classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: 'biz/nellemann/libcvrapi/pojo/**') fileTree(dir: it, exclude: 'biz/nellemann/libcvrapi/pojo/**')
})) }))
} }
} }
test.finalizedBy jacocoTestReport test.finalizedBy jacocoTestReport
jacocoTestCoverageVerification { jacocoTestCoverageVerification {
violationRules { violationRules {
rule { rule {
element = 'CLASS' element = 'CLASS'
limit { limit {
counter = 'LINE' counter = 'LINE'
value = 'COVEREDRATIO' value = 'COVEREDRATIO'
minimum = 0.7 minimum = 0.7
} }
excludes = [ excludes = [
'biz.nellemann.libcvrapi.pojo.*' 'biz.nellemann.libcvrapi.pojo.*'
] ]
} }
} }
} }
check.dependsOn jacocoTestCoverageVerification check.dependsOn jacocoTestCoverageVerification

View File

@ -1,6 +1,6 @@
id = libcvrapi id = libcvrapi
group = biz.nellemann.libs group = biz.nellemann.libs
version = 1.0.3 version = 1.0.4
licenses = ['APACHE-2.0'] // or something else licenses = ['APACHE-2.0'] // or something else
groovyVersion = 2.5.8 groovyVersion = 2.5.8
slf4jVersion = 1.7.28 slf4jVersion = 1.7.28

View File

@ -29,7 +29,7 @@ public class AccountingDocumentSummary {
BigDecimal grossprofitloss; BigDecimal grossprofitloss;
BigDecimal profitloss; BigDecimal profitloss;
BigDecimal equity; BigDecimal equity;
Integer averagenumberofemployees; BigDecimal averagenumberofemployees;
/* TODO: Add fields if needed /* TODO: Add fields if needed
"employeebenefitsexpense": "-27446000", "employeebenefitsexpense": "-27446000",