forked from icerockdev/moko-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (35 loc) · 1.16 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
/*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
plugin(Deps.Plugins.detekt) apply false
}
allprojects {
repositories {
google()
jcenter()
maven { url = uri("https://kotlin.bintray.com/kotlin") }
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
maven { url = uri("https://dl.bintray.com/icerockdev/moko") }
}
apply(plugin = Deps.Plugins.detekt.id)
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin")
}
dependencies {
"detektPlugins"(Deps.Libs.Jvm.detektFormatting)
}
plugins.withId(Deps.Plugins.androidLibrary.id) {
configure<com.android.build.gradle.LibraryExtension> {
compileSdkVersion(Deps.Android.compileSdk)
defaultConfig {
minSdkVersion(Deps.Android.minSdk)
targetSdkVersion(Deps.Android.targetSdk)
}
}
}
}
tasks.register("clean", Delete::class).configure {
group = "build"
delete(rootProject.buildDir)
}