Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed May 30, 2019
1 parent bb823e0 commit 552d568
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ plugins {
}

def publishedProjects = subprojects.findAll { it.path != ':test' }
def jacocoExclusions = [
'**/com/annimon/stream/internal/Compat**',
'**/com/annimon/stream/test/hamcrest/CommonMatcher**'
]

allprojects {
repositories {
Expand Down Expand Up @@ -35,10 +39,7 @@ subprojects {

afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/com/annimon/stream/internal/Compat**',
'**/com/annimon/stream/test/hamcrest/CommonMatcher**'
])
fileTree(dir: it, exclude: jacocoExclusions)
})
}
}
Expand Down Expand Up @@ -94,6 +95,8 @@ sonarqube {
property "sonar.projectName", "Lightweight-Stream-API"
property "sonar.projectKey", "lightweight-stream-api"
property "sonar.host.url", "https://sonarcloud.io"
property 'sonar.jacoco.reportPath', "stream/build/jacoco/jacocoMerge.exec"
property 'sonar.coverage.exclusions', jacocoExclusions
}
}

Expand Down

0 comments on commit 552d568

Please sign in to comment.