-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
47 lines (43 loc) · 1.24 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(app.futured.arkitekt.Dependencies.Android.gradlePlugin)
classpath(
kotlin(
app.futured.arkitekt.Dependencies.Kotlin.gradlePlugin,
app.futured.arkitekt.Dependencies.Kotlin.version
)
)
classpath(app.futured.arkitekt.Dependencies.MavenPublish.plugin)
classpath(app.futured.arkitekt.Dependencies.Dokka.plugin)
}
}
plugins {
idea
signing
publishing
}
allprojects {
repositories {
google()
mavenCentral()
}
}
project.subprojects {
plugins.whenPluginAdded {
if (this is SigningPlugin) {
extensions.findByType<SigningExtension>()?.apply {
val hasKey = project.hasProperty("SIGNING_PRIVATE_KEY")
val hasPassword = project.hasProperty("SIGNING_PASSWORD")
if (hasKey && hasPassword) {
val key = project.properties["SIGNING_PRIVATE_KEY"].toString()
val password = project.properties["SIGNING_PASSWORD"].toString()
useInMemoryPgpKeys(key, password)
}
}
}
}
}