Skip to content

Commit

Permalink
tmp del jacoco setting and use jenkins only
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsonChan committed Mar 13, 2024
1 parent 7880be9 commit cbb4935
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ subprojects {
property 'sonar.sources', "$projectDir/src/main/java"
property 'sonar.sources.exclusions', '**/package.html'
}
property 'sonar.coverage.jacoco.xmlReportPaths', "$rootDir/zktest/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
// property 'sonar.coverage.jacoco.xmlReportPaths', "$rootDir/zktest/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
}
}

Expand Down
24 changes: 12 additions & 12 deletions zktest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id "org.gretty" version "3.1.1"
id 'idea'
id 'com.github.psxpaul.execfork' version '0.2.2'
id 'jacoco-report-aggregation'
// id 'jacoco-report-aggregation'
}

idea {
Expand All @@ -21,10 +21,10 @@ tasks.withType(JavaCompile) {
options.warnings = false
}

// JaCoCo aggregate report
tasks.withType(Test) {
finalizedBy testCodeCoverageReport
}
//// JaCoCo aggregate report
//tasks.withType(Test) {
// finalizedBy testCodeCoverageReport
//}

repositories {
mavenLocal() {
Expand Down Expand Up @@ -355,10 +355,10 @@ def addClassPath(gradle, beforeClassPath, visitedBuilds, allowedWorkspace, subpr
appRunDev.dependsOn 'appRun'
appRunDebugDev.dependsOn 'appRunDebug'

testCodeCoverageReport {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['org/zkoss/zktest/**'])
}))
}
}
//testCodeCoverageReport {
// afterEvaluate {
// classDirectories.setFrom(files(classDirectories.files.collect {
// fileTree(dir: it, exclude: ['org/zkoss/zktest/**'])
// }))
// }
//}

0 comments on commit cbb4935

Please sign in to comment.