-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
106 lines (91 loc) · 2.67 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import org.jetbrains.kotlin.gradle.plugin.extraProperties
import org.jreleaser.model.Active
import org.jreleaser.model.Signing
plugins {
alias(libs.plugins.kotlin.jvm)
`maven-publish`
signing
alias(libs.plugins.jreleaser)
}
group = "io.github.rand0m-cloud.astronkt"
version = "0.1.3"
allprojects {
apply(plugin = "maven-publish")
apply(plugin = "signing")
apply(plugin = "org.jetbrains.kotlin.jvm")
group = rootProject.group
version = rootProject.version
publishing {
repositories {
maven {
url = uri(rootProject.layout.buildDirectory.dir("staging-deploy"))
}
mavenLocal()
}
}
java {
withJavadocJar()
withSourcesJar()
}
}
jreleaser {
signing {
active = Active.ALWAYS
armored = true
mode = Signing.Mode.COMMAND
command {
keyName = "67330A37C2F9CF7EFAA3FC88AD494F4E8D2BE55B"
}
}
deploy {
maven {
mavenCentral {
create("sonatype") {
active = Active.ALWAYS
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepository("build/staging-deploy")
}
}
}
}
}
val usePomTemplate: MavenPublication.(String, String) -> Unit = { publicName, publicDescription ->
pom {
name = publicName
description = publicDescription
url = "https://github.com/rand0m-cloud/astronkt"
organization {
name = "io.github.rand0m-cloud.astronkt"
url = "https://github.com/rand0m-cloud/astronkt"
}
developers {
developer {
name = "Abby Bryant"
email = "rand0m-cloud@outlook.com"
url = "https://github.com/rand0m-cloud"
}
}
issueManagement {
system = "github"
url = "https://github.com/rand0m-cloud/astronkt"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "repo"
}
license {
name = "The MIT License"
url = "https://opensource.org/license/mit"
distribution = "repo"
}
}
scm {
url = "https://github.com/rand0m-cloud/astronkt"
connection = "scm:git:git://github.com/rand0m-cloud/astronkt"
developerConnection = "scm:git:ssh://github.com/rand0m-cloud/astronkt.git"
}
}
}
extraProperties.set("PomTemplate", usePomTemplate)