-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
66 lines (57 loc) · 2.39 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
57
58
59
60
61
62
63
64
65
66
import io.deepmedia.tools.deployer.DeployerExtension
import io.deepmedia.tools.deployer.specs.SonatypeAuth
plugins {
kotlin("multiplatform") apply false
kotlin("jvm") apply false
kotlin("plugin.serialization") apply false
id("io.deepmedia.tools.deployer") apply false
}
subprojects {
group = providers.gradleProperty("knee.group").get()
version = providers.gradleProperty("knee.version").get()
// Publishing
plugins.withId("io.deepmedia.tools.deployer") {
extensions.configure<DeployerExtension> {
verbose.set(providers.environmentVariable("CI").orElse("").map { it.isNotBlank() })
projectInfo {
description.set("A Kotlin Compiler Plugin for seamless communication between Kotlin/Native and Kotlin/JVM.")
url.set("https://github.com/deepmedia/Knee")
scm.fromGithub("deepmedia", "Knee")
license(apache2)
developer("natario1", "[email protected]", "DeepMedia", "https://deepmedia.io")
}
signing {
key.set(secret("SIGNING_KEY"))
password.set(secret("SIGNING_PASSWORD"))
}
// use "deployLocal" to deploy to local maven repository
localSpec {
// directory = rootProject.layout.buildDirectory.dir("inspect")
signing.password = absent()
signing.key = absent()
}
// use "deploySonatype" to deploy to OSSRH / maven central
nexusSpec {
syncToMavenCentral = true
auth.user.set(secret("SONATYPE_USER"))
auth.password.set(secret("SONATYPE_PASSWORD"))
}
// use "deploySonatypeSnapshot" to deploy to sonatype snapshots repo
nexusSpec("snapshot") {
auth.user.set(secret("SONATYPE_USER"))
auth.password.set(secret("SONATYPE_PASSWORD"))
repositoryUrl.set(ossrhSnapshots1)
release.version.set("latest-SNAPSHOT")
}
// use "deployGithub" to deploy to github packages
githubSpec {
repository.set("Knee")
owner.set("deepmedia")
auth {
user.set(secret("GHUB_USER"))
token.set(secret("GHUB_PERSONAL_ACCESS_TOKEN"))
}
}
}
}
}