-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
63 lines (53 loc) · 1.37 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
buildscript {
ext.kotlin_version = '1.8.10'
apply from: rootProject.file('dependencies.gradle')
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath sdkBuildDep.dexCountPlugin
classpath sdkBuildDep.credentialsPlugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}
plugins {
id "org.sonarqube" version "3.3"
}
subprojects {
def isRootProject = rootProject.name.equals(name)
repositories {
if (rootProject.hasProperty('NEXUS_USER') &&
rootProject.hasProperty('NEXUS_PASSWORD')) {
maven {
url "https://repo.bazaarvoice.com/nexus/content/repositories/snapshots"
credentials {
username NEXUS_USER
password NEXUS_PASSWORD
}
}
}
google()
mavenCentral()
}
if (!isRootProject) {
plugins.apply('checkstyle')
task('checkstyle', type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
}
group = GROUP
version = VERSION_NAME
afterEvaluate {
if (!isRootProject) {
tasks.findByName('check').dependsOn('checkstyle')
}
}
}