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 {
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

View File

@ -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

View File

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