-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
83 lines (76 loc) · 2.87 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.dokka) apply false
`maven-publish`
signing
}
repositories {
mavenCentral()
}
val dokka = libs.plugins.dokka.get().pluginId
subprojects {
apply(plugin = "maven-publish")
apply(plugin = "signing")
apply(plugin = dokka)
signing {
setRequired { System.getenv("VERSION") != null }
useInMemoryPgpKeys(
System.getenv("GPG_PRIVATE_KEY"),
System.getenv("GPG_PASSPHRASE")
)
sign(publishing.publications)
}
publishing {
publications {
repositories {
maven {
name = "oss"
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
credentials {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
withType<MavenPublication> {
// Stub javadoc.jar artifact
artifact(tasks.register("${name}JavadocJar", Jar::class) {
archiveClassifier.set("javadoc")
archiveAppendix.set([email protected])
})
pom {
name.set("Wirespec")
description.set("Type safe wires made easy")
licenses {
license {
name.set("Apache-2.0")
url.set("https://opensource.org/license/apache-2-0")
}
}
url.set("https://flock.community")
issueManagement {
system.set("Github")
url.set("https://github.com/flock-community/wirespec/issues")
}
scm {
connection.set("https://github.com/flock-community/wirespec.git")
url.set("https://github.com/flock-community/wirespec")
}
developers {
developer {
name.set("Jerre van Veluw")
email.set("[email protected]")
}
developer {
name.set("Willem Veelenturf")
email.set("[email protected]")
}
}
}
}
}
}
}