Skip to content

Commit

Permalink
DOCKER-450 [Test] sonar exclude tomcat 8.5 - 9
Browse files Browse the repository at this point in the history
  • Loading branch information
codingBenVdS committed May 27, 2024
1 parent 5be7893 commit 3c38a90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tomcat-base/tomcat-embedded-10/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
version: '10.1.23'
]
}

// We only "test" this code via sonarcube. Otherwise we get duplicate code errors
sonarqube {
properties {
property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared"
Expand Down
9 changes: 5 additions & 4 deletions tomcat-base/tomcat-embedded-8.5/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ ext {
version: '8.5.78'
]
}
//sonarqube {
// properties {
sonarqube {
properties {
// property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared/main/java"
// }
//}
property "sonar.exclusions", "$project.parent.projectDir/src/shared/main/java"
}
}
11 changes: 6 additions & 5 deletions tomcat-base/tomcat-embedded-9/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ ext {
version: '9.0.59'
]
}
//sonarqube {
// properties {
// property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared"
// }
//}
sonarqube {
properties {
// property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared/main/java"
property "sonar.exclusions", "$project.parent.projectDir/src/shared/main/java"
}
}

0 comments on commit 3c38a90

Please sign in to comment.