Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ subprojects {

task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun May 24 07:45:02 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
78 changes: 43 additions & 35 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 4 additions & 10 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions monolithic/repository/cart/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apply plugin: 'jacoco'
apply plugin: 'java'

jar.baseName = "redis-cart-microservice-repository"

idea {
Expand Down Expand Up @@ -32,3 +35,46 @@ dependencies {

testCompile testDeps
}

jacoco {
toolVersion = "0.8.3"
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled true
csv.enabled true
}
}

jacocoTestCoverageVerification {
Map<String, String> env = System.getenv()
def coverage = (env.get('COVERAGE') != null ? Float.parseFloat(env.get('COVERAGE')) : 0.5 )
// This module testing dev is still WIP, lets validate when
// coverage check is less than 0.15, otherwise we always have 0 validation
coverage = (coverage < 0.25) ? coverage : 0.0

violationRules {
rule {
limit {
minimum = coverage
}
}

rule {
enabled = false
element = 'CLASS'
includes = ['org.gradle.*']

limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 0.3
}
}
}
}

check.dependsOn jacocoTestReport
check.dependsOn jacocoTestCoverageVerification
43 changes: 43 additions & 0 deletions monolithic/repository/order/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apply plugin: 'jacoco'
apply plugin: 'java'

jar.baseName = "order-repository"

idea {
Expand Down Expand Up @@ -34,3 +37,43 @@ dependencies {

testCompile testDeps
}

jacoco {
toolVersion = "0.8.3"
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled true
csv.enabled true
}
}

jacocoTestCoverageVerification {
Map<String, String> env = System.getenv()
def coverage = (env.get('COVERAGE') != null ? Float.parseFloat(env.get('COVERAGE')) : 0.5 )

violationRules {
rule {
limit {
minimum = coverage
}
}

rule {
enabled = false
element = 'CLASS'
includes = ['org.gradle.*']

limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 0.3
}
}
}
}

check.dependsOn jacocoTestReport
check.dependsOn jacocoTestCoverageVerification
46 changes: 46 additions & 0 deletions monolithic/repository/product/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apply plugin: 'jacoco'
apply plugin: 'java'

jar.baseName = "product-repository"

idea {
Expand Down Expand Up @@ -32,3 +35,46 @@ dependencies {

testCompile testDeps
}

jacoco {
toolVersion = "0.8.3"
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled true
csv.enabled true
}
}

jacocoTestCoverageVerification {
Map<String, String> env = System.getenv()
def coverage = (env.get('COVERAGE') != null ? Float.parseFloat(env.get('COVERAGE')) : 0.5 )
// This module testing dev is still WIP, lets validate when
// coverage check is less than 0.15, otherwise we always have 0 validation
coverage = (coverage < 0.25) ? coverage : 0.0

violationRules {
rule {
limit {
minimum = coverage
}
}

rule {
enabled = false
element = 'CLASS'
includes = ['org.gradle.*']

limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 0.3
}
}
}
}

check.dependsOn jacocoTestReport
check.dependsOn jacocoTestCoverageVerification
Loading