-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
38 lines (33 loc) · 1.08 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:${Versions.Essential.Gradle}")
classpath("com.google.gms:google-services:${Versions.Essential.GoogleService}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Versions.Hilt.Master}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.Essential.Kotlin}")
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { setUrl("https://jitpack.io") }
maven { setUrl("https://oss.jfrog.org/libs-snapshot") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots") }
}
afterEvaluate {
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.OptIn"
)
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}