forked from TEAM-2NE1/steach-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonarqube.gradle
33 lines (26 loc) · 1.62 KB
/
sonarqube.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//sonarqube
// build.gradle 에서 ext로 정의
//def jacocoDir = "${buildDir}/customJacocoReportDir"
def void property(java.lang.String string1, java.lang.String string2) {}
sonarqube {
properties {
property "sonar.projectName", "steach-server"
property "sonar.projectKey", "steach-server"
property "sonar.host.url", "http://43.202.1.52:9000"
property "sonar.token", "squ_9aa7980bb6f27b7f25091824cd3af5cddabf96db"
property "sonar.language", "java"
property 'sonar.projectVersion', '1.1.0-SNAPSHOT'
property "sonar.sourceEncoding", "UTF-8"
property 'sonar.test.inclusions', '**/*Test.java'
property 'sonar.exclusions', '**/test/**, **/Q*.java, **/*Doc*.java, **/resources/**'
property "sonar.sources", "src/main/java"
property "sonar.java.binaries", "${projectDir}/build/classes/java/main"
property 'sonar.coverage.jacoco.xmlReportPaths', "${jacocoDir}/jacocoTestReport.xml"
// 이는 메서드의 복잡도가 10을 초과하면 경고를 표시합니다.
property "sonar.java.metrics.methodComplexityThreshold", "10"
// property 'sonar.coverage.jacoco.xmlReportPaths', jacocoDir.map { it.file('jacocoTestReport.xml') }.get().asFile.path
// Execution failed for task ':sonar'.
// > No signature of method: java.lang.String.map() is applicable for argument types: (sonarqube_d3d6am1yjzld9akvhilqh5kp0$_run_closure1$_closure2$_closure3) values: [sonarqube_d3d6am1yjzld9akvhilqh5kp0$_run_closure1$_closure2$_closure3@2b93b8]
// Possible solutions: tap(groovy.lang.Closure), md5(), wait(), dump(), any(), grep()
}
}