-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle.kts
56 lines (47 loc) · 1.41 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
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath(libs.detekt.gradle.plugin)
classpath(libs.mobile.multiplatform)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.gradle)
}
}
allprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
input.setFrom(
"src/commonMain/kotlin",
"src/androidMain/kotlin",
"src/iosMain/kotlin",
"src/commonJvm/kotlin"
)
}
dependencies {
"detektPlugins"(rootProject.libs.detektFormatting)
}
plugins.withId("com.android.library") {
configure<com.android.build.gradle.LibraryExtension> {
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
testOptions.targetSdk = libs.versions.targetSdk.get().toInt()
}
}
}
val signingTasks = tasks.withType<Sign>()
tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}
}
tasks.register("clean", Delete::class).configure {
group = "build"
delete(layout.buildDirectory)
}