-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
77 lines (61 loc) · 1.92 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: './scripts/versions.gradle'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.gradle"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin_gradle_plugin"
//Nav SafeARGS
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$versions.navigation"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$versions.spotless"
//Dagger Hilt
classpath "com.google.dagger:hilt-android-gradle-plugin:$versions.hilt"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
def localProperties = new Properties()
if(project.file("local.properties").exists()){
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
}
allprojects {
repositories {
google()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/EYDS-CA/BCVAX-Android")
credentials {
username = localProperties['USER'] ?: System.getenv("USER")
password = localProperties['TOKEN'] ?: System.getenv("TOKEN")
}
}
jcenter()
}
apply plugin: "com.diffplug.spotless"
}
spotless {
kotlin {
target '**/*.kt'
ktlint()
trimTrailingWhitespace()
indentWithSpaces()
}
kotlinGradle {
target '*.gradle.kts'
ktlint()
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
indentWithSpaces()
trimTrailingWhitespace()
}
format 'xml', {
target '**/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
}
}