-
Notifications
You must be signed in to change notification settings - Fork 105
/
build.gradle
62 lines (57 loc) · 1.61 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
buildscript {
dependencies {
classpath libs.kotlinPlugin
classpath libs.dokkaPlugin
classpath libs.mavenPublishPlugin
classpath libs.spotlessPlugin
classpath libs.buildConfigPlugin
}
repositories {
mavenCentral()
gradlePluginPortal()
}
}
subprojects {
group = GROUP
version = VERSION_NAME
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
ktlint().editorConfigOverride([
'ktlint_standard_filename': 'disabled',
])
target('**/*.kt')
}
}
plugins.withType(JavaBasePlugin).configureEach {
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
plugins.withId('org.jetbrains.kotlin.jvm') {
compileKotlin {
compilerOptions {
freeCompilerArgs = [
"-progressive",
'-opt-in=kotlin.contracts.ExperimentalContracts'
]
}
}
}
configurations.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "com.android.tools.build" && requested.name == "aapt2-proto") {
useVersion(libs.versions.aapt2Proto.get())
because("We need to keep depenedencies in sync with bundletool")
}
if (requested.group == "com.google.protobuf" && requested.name == "protobuf-java") {
useVersion(libs.versions.protobufJava.get())
because("We need to keep depenedencies in sync with bundletool")
}
if (requested.group == "com.google.guava" && requested.name == "guava") {
useVersion(libs.versions.guava.get())
because("We need to keep depenedencies in sync with bundletool")
}
}
}
}