Changed to java-api type
This commit is contained in:
parent
ba62652a05
commit
6809bd762a
54
build.gradle
54
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -29,7 +29,7 @@ public class AccountingDocumentSummary {
|
|||
BigDecimal grossprofitloss;
|
||||
BigDecimal profitloss;
|
||||
BigDecimal equity;
|
||||
Integer averagenumberofemployees;
|
||||
BigDecimal averagenumberofemployees;
|
||||
|
||||
/* TODO: Add fields if needed
|
||||
"employeebenefitsexpense": "-27446000",
|
||||
|
|
Loading…
Reference in a new issue