-
-
Notifications
You must be signed in to change notification settings - Fork 147
/
ktorm.publish.gradle.kts
203 lines (193 loc) · 7.28 KB
/
ktorm.publish.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
plugins {
id("kotlin")
id("signing")
id("maven-publish")
id("org.jetbrains.dokka")
}
val jarSources by tasks.registering(Jar::class) {
dependsOn("codegen")
from(sourceSets.main.map { it.allSource })
archiveClassifier.set("sources")
}
val jarJavadoc by tasks.registering(Jar::class) {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
publishing {
publications {
create<MavenPublication>("dist") {
from(components["java"])
artifact(jarSources)
artifact(jarJavadoc)
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
pom {
name.set("${project.group}:${project.name}")
description.set("A lightweight ORM Framework for Kotlin with strong typed SQL DSL and sequence APIs.")
url.set("https://www.ktorm.org")
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
url.set("https://github.com/kotlin-orm/ktorm")
connection.set("scm:git:https://github.com/kotlin-orm/ktorm.git")
developerConnection.set("scm:git:ssh://[email protected]/kotlin-orm/ktorm.git")
}
developers {
developer {
id.set("vincentlauvlwj")
name.set("vince")
email.set("[email protected]")
}
developer {
id.set("waluo")
name.set("waluo")
email.set("[email protected]")
}
developer {
id.set("clydebarrow")
name.set("Clyde")
email.set("[email protected]")
}
developer {
id.set("Ray-Eldath")
name.set("Ray Eldath")
email.set("[email protected]")
}
developer {
id.set("hangingman")
name.set("hiroyuki.nagata")
email.set("[email protected]")
}
developer {
id.set("onXoot")
name.set("beetlerx")
email.set("[email protected]")
}
developer {
id.set("arustleund")
name.set("Andrew Rustleund")
email.set("[email protected]")
}
developer {
id.set("afezeria")
name.set("afezeria")
email.set("[email protected]")
}
developer {
id.set("scorsi")
name.set("Sylvain Corsini")
email.set("[email protected]")
}
developer {
id.set("lyndsysimon")
name.set("Lyndsy Simon")
email.set("[email protected]")
}
developer {
id.set("antonydenyer")
name.set("Antony Denyer")
email.set("[email protected]")
}
developer {
id.set("mik629")
name.set("Mikhail Erkhov")
email.set("[email protected]")
}
developer {
id.set("sinzed")
name.set("Saeed Zahedi")
email.set("[email protected]")
}
developer {
id.set("smn-dv")
name.set("Simon Schoof")
email.set("[email protected]")
}
developer {
id.set("pedrod")
name.set("Pedro Domingues")
email.set("[email protected]")
}
developer {
id.set("efenderbosch")
name.set("Eric Fenderbosch")
email.set("[email protected]")
}
developer {
id.set("kocproz")
name.set("Kacper Stasiuk")
email.set("[email protected]")
}
developer {
id.set("2938137849")
name.set("ccr")
email.set("[email protected]")
}
developer {
id.set("zuisong")
name.set("zuisong")
email.set("[email protected]")
}
developer {
id.set("svenallers")
name.set("Sven Allers")
email.set("[email protected]")
}
developer {
id.set("lookup-cat")
name.set("夜里的向日葵")
email.set("[email protected]")
}
developer {
id.set("michaelfyc")
name.set("michaelfyc")
email.set("[email protected]")
}
developer {
id.set("brohacz")
name.set("Michal Brosig")
}
developer {
id.set("hc224")
name.set("hc224")
email.set("[email protected]")
}
}
}
}
repositories {
maven {
name = "central"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
credentials {
username = System.getenv("OSSRH_USER")
password = System.getenv("OSSRH_PASSWORD")
}
}
maven {
name = "snapshot"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
credentials {
username = System.getenv("OSSRH_USER")
password = System.getenv("OSSRH_PASSWORD")
}
}
}
}
}
signing {
val keyId = System.getenv("GPG_KEY_ID")
val secretKey = System.getenv("GPG_SECRET_KEY")
val password = System.getenv("GPG_PASSWORD")
setRequired {
!project.version.toString().endsWith("SNAPSHOT")
}
useInMemoryPgpKeys(keyId, secretKey, password)
sign(publishing.publications["dist"])
}