-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
67 lines (59 loc) · 1.4 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
plugins {
kotlin("jvm") version "1.6.20" apply false
id("com.bmuschko.nexus") version "2.3.1" apply false
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1"
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
}
extra["kotlinVersion"] = "1.6.20"
allprojects {
group = "org.redundent"
version = "1.9.1"
repositories {
mavenCentral()
}
}
nexusPublishing {
repositories {
sonatype()
}
}
subprojects {
afterEvaluate {
configure<PublishingExtension> {
publications.withType<MavenPublication> {
artifact(
tasks.register("${name}JavadocJar", Jar::class) {
archiveClassifier.set("javadoc")
archiveAppendix.set([email protected])
}
)
pom {
name.set("Kotlin XML Builder")
description.set("A lightweight type safe builder to build xml documents in Kotlin")
url.set("https://github.com/redundent/kotlin-xml-builder")
licenses {
license {
name.set("Apache 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
developers {
developer {
id.set("redundent")
name.set("Jason Blackwell")
}
}
scm {
url.set("https://github.com/redundent/kotlin-xml-builder")
}
}
}
}
configure<SigningExtension> {
if (project.hasProperty("signing.gnupg.keyName")) {
useGpgCmd()
sign(extensions.getByType(PublishingExtension::class).publications)
}
}
}
}