forked from nugu-developers/nugu-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (81 loc) · 3.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.5.20'
ext.grpc_version = '1.43.1'
ext.protoc_version = '3.19.1'
ext.dokka_version = '1.7.10'
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.17"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath 'com.google.gms:google-services:4.3.8'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://nexus.nugu.co.kr/repository/maven-public/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
tasks.withType(Test) {
testLogging {
showStandardStreams = true
events "passed", "skipped", "failed"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
isReleaseMode = Boolean.parseBoolean(System.getenv("IS_RELEASE_MODE")) ?: false
publishSnapshot = Boolean.parseBoolean(System.getenv("PUBLISH_SNAPSHOT")) ?: false
}
apply from: 'versions.gradle'
subprojects {
version = nuguVersionName
}
apply plugin: 'org.jetbrains.dokka'
//tasks.dokkaHtmlMultiModule {
// includes.from("README.md")
//}
println("version code: $nuguVersionCode")
println("version name: $nuguVersionName")
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property "sonar.host.url", "sonarqubeurl"
property "sonar.login", "name"
property "sonar.password", "pw"
property "sonar.projectKey", "sdk-android"
property "sonar.projectName", "sdk-android"
property "sonar.projectVersion", "$version"
property "sonar.sourceEncoding", "UTF-8"
property 'sonar.core.codeCoveragePlugin', 'jacoco'
property 'sonar.coverage.jacoco.xmlReportPaths', ["$rootDir/nugu-agent/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-android-helper/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-client-kit/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-client-transport-http2/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-core/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-interface/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-login-kit/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-service-kit/build/reports/jacoco/coverageReport/coverageReport.xml",
"$rootDir/nugu-ux-kit/build/reports/jacoco/coverageReport/coverageReport.xml"]
}
}