-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (46 loc) · 1.7 KB
/
build.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.7.10'
ext.sonarqube = '3.5.0.2730'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "org.sonarqube" version "3.5.0.2730"
}
sonarqube {
properties {
property "sonar.host.url", "http://localhost:9000/"
property "sonar.login", "sqp_cd597b6b569550f5f2918e59885c0751e3a4a3ce"
property "sonar.password", "" // 인증 토큰 을 사용 하므로 공백처리 한다
property "sonar.projectKey", "ToothFairy"
property "sonar.projectName", "ToothFairy"
property "sonar.projectVersion", "1.0"
// 소나큐브의 분석에 포함되지 않을 파일을 `exclusions`에 추가할 수 있다.
property "sonar.exclusions", "**/*Test*/**," +
"*.json," +
"**/*test/**," +
"**/.gradle/**," +
"**/R.class"
}
}
subprojects { // 다른 모듈들에 대한 공통 작업을 정의 한다.
sonarqube {
properties {
// 코틀린의 소스셋의 디렉토리를 따로 가져갔을 경우 해당 디렉토리와 같게 해주어야 한다.
property "sonar.sources", "src/main/java"
property "sonar.sourceEncoding", "UTF-8"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}