forked from igorwojda/android-showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
33 lines (30 loc) · 1.42 KB
/
settings.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
pluginManagement {
repositories {
gradlePluginPortal()
google()
}
plugins {
id(GradlePluginId.DETEKT) version GradlePluginVersion.DETEKT
id(GradlePluginId.KTLINT_GRADLE) version GradlePluginVersion.KTLINT_GRADLE
id(GradlePluginId.GRADLE_VERSION_PLUGIN) version GradlePluginVersion.GRADLE_VERSION_PLUGIN
id(GradlePluginId.KOTLIN_JVM) version GradlePluginVersion.KOTLIN
id(GradlePluginId.KOTLIN_ANDROID) version GradlePluginVersion.KOTLIN
id(GradlePluginId.KOTLIN_ANDROID_EXTENSIONS) version GradlePluginVersion.KOTLIN
id(GradlePluginId.ANDROID_APPLICATION) version GradlePluginVersion.ANDROID_GRADLE
id(GradlePluginId.ANDROID_LIBRARY) version GradlePluginVersion.ANDROID_GRADLE
id(GradlePluginId.ANDROID_DYNAMIC_FEATURE) version GradlePluginVersion.ANDROID_GRADLE
id(GradlePluginId.SAFE_ARGS) version GradlePluginVersion.SAFE_ARGS
}
resolutionStrategy {
eachPlugin {
when (requested.id.id) {
GradlePluginId.ANDROID_APPLICATION,
GradlePluginId.ANDROID_LIBRARY,
GradlePluginId.ANDROID_DYNAMIC_FEATURE -> useModule(GradleOldWayPlugins.ANDROID_GRADLE)
GradlePluginId.SAFE_ARGS -> useModule(GradleOldWayPlugins.SAFE_ARGS)
}
}
}
}
rootProject.buildFileName = "build.gradle.kts"
include(*ModuleDependency.getAllModules().toTypedArray())