-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
44 lines (40 loc) · 1.15 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version versions.kotlin apply false
id("com.diffplug.spotless") version versions.spotless
}
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/SmartypeObject.kt")
trimTrailingWhitespace()
endWithNewline()
}
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath(deps.android.gradlePlugin)
classpath(kotlin("gradle-plugin", version = versions.kotlin))
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
google()
}
extra["signing.keyId"] = System.getenv("mavenSigningKeyId")
extra["signing.secretKeyRingFile"] = System.getenv("mavenSigningKeyRingFile")
extra["signing.password"] = System.getenv("mavenSigningKeyPassword")
// workaround for a AGP/KMP bug
// https://youtrack.jetbrains.com/issue/KT-46466
// https://github.com/gradle/gradle/issues/26091
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}
}