Skip to content

Commit

Permalink
DOCKER-450 [test] ignore subproject embedded-x code for sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
codingBenVdS committed May 27, 2024
1 parent 3c38a90 commit c609159
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
5 changes: 5 additions & 0 deletions tomcat-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@ subprojects {
}

apply from: "${rootProject.projectDir}/tomcat-base/publish.gradle"
sonarqube {
properties {
property "sonar.exclusions", "$project.parent.projectDir/src/shared/main/java/eu/xenit/alfresco/embedded/tomcat"
}
}
}
10 changes: 5 additions & 5 deletions tomcat-base/tomcat-embedded-10/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ext {
]
}
// We only "test" this code via sonarcube. Otherwise we get duplicate code errors
sonarqube {
properties {
property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared"
}
}
//sonarqube {
// properties {
// property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared"
// }
//}
6 changes: 0 additions & 6 deletions tomcat-base/tomcat-embedded-8.5/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ ext {
tomcat = [
version: '8.5.78'
]
}
sonarqube {
properties {
// property 'sonar.projectBaseDir', "$project.parent.projectDir/src/shared/main/java"
property "sonar.exclusions", "$project.parent.projectDir/src/shared/main/java"
}
}
6 changes: 0 additions & 6 deletions tomcat-base/tomcat-embedded-9/overload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ ext {
tomcat = [
version: '9.0.59'
]
}
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 c609159

Please sign in to comment.