forked from simonnorberg/dmach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (44 loc) · 1.18 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 net.simno.dmach.Libs
import net.simno.dmach.Versions
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath Libs.androidGradlePlugin
classpath Libs.Kotlin.gradlePlugin
classpath Libs.Kotlin.serializationPlugin
classpath Libs.Google.ossLicensesPlugin
classpath Libs.Google.Hilt.plugin
classpath Libs.playPublisherPlugin
}
}
plugins {
id 'com.diffplug.spotless' version '5.11.0'
id 'com.github.ben-manes.versions' version '0.38.0'
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = Versions.java
allWarningsAsErrors = true
freeCompilerArgs += '-Xopt-in=kotlin.Experimental'
freeCompilerArgs += '-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi'
freeCompilerArgs += '-Xopt-in=kotlinx.coroutines.FlowPreview'
}
}
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
ktlint(Versions.ktlint)
}
}
}