-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
60 lines (52 loc) · 1.57 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
google()
jcenter()
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
flatDir {
dirs("../aars")
}
}
dependencies {
classpath(Libs.kotlinGradle)
classpath(Libs.kotlinterGradle)
classpath(Libs.dependencyAnalyzer)
classpath(Libs.kotlinAllOpen)
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id("io.gitlab.arturbosch.detekt") version Version.detektVersion
}
allprojects {
apply(plugin = "kotlin-allopen")
apply(from = "$rootDir/gradle/static-analysis.gradle")
val groupFromProperties: String by extra("GROUP")
val versionFromProperties: String by extra("VERSION_NAME")
group = groupFromProperties
version = versionFromProperties
repositories {
google()
jcenter()
maven(url = "https://jitpack.io")
flatDir {
dirs("../aars")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.allWarningsAsErrors = true
}
tasks.withType<JavaCompile> {
options.compilerArgs.apply {
add("-Xlint:all")
add("-Xlint:-deprecation") // AP-1900
add("-Xlint:-unchecked") // dagger
add("-Xlint:-rawtypes") // dagger
add("-Xlint:-classfile") // dagger
add("-Werror")
}
}
}