-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (41 loc) · 1.25 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
import com.pubnub.components.buildsrc.Libs
import com.pubnub.components.buildsrc.Urls
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply plugin: "com.github.ben-manes.versions"
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
dependencies {
classpath(Libs.androidGradlePlugin)
classpath(Libs.Kotlin.gradlePlugin)
classpath(Libs.Hilt.gradlePlugin)
classpath(Libs.gradleMavenPublishPlugin)
classpath(Libs.gradleVersionsPlugin)
}
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
maven { url "https://jitpack.io" }
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url Urls.composeSnapshotRepo }
maven { url Urls.mavenCentralSnapshotRepo }
}
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = true
jvmTarget = "1.8"
// Use experimental APIs
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
freeCompilerArgs += '-Xopt-in=kotlin.time.ExperimentalTime'
}
}
}