-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
31 lines (28 loc) · 1.07 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
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapperKt
plugins {
alias(libs.plugins.starter.config)
alias(libs.plugins.starter.versioning)
alias(libs.plugins.osacky.doctor)
alias(libs.plugins.starter.library.kotlin) apply false
alias(libs.plugins.kotlinx.binarycompatibility) apply(false)
}
commonConfig {
javaVersion JavaVersion.VERSION_11
}
allprojects {
pluginManager.withPlugin("kotlin") { plugin ->
def kotlinVersion = KotlinPluginWrapperKt.getKotlinPluginVersion(project)
def agp = libs.agp.gradle.get().module
def agpVersion = libs.versions.google.agp.get()
configurations.matching { it.name != "detekt" }.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == 'org.jetbrains.kotlin' && requested.name.startsWith("kotlin")) {
useVersion kotlinVersion
}
if (requested.group == agp.group && requested.module.name == agp.name) {
useVersion agpVersion
}
}
}
}
}