-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
85 lines (70 loc) · 2.51 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
val javaVersion = JavaVersion.VERSION_1_8
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "signing")
group = "wtf.mizu"
version = "0.1.0"
repositories {
mavenLocal()
// Most of the libraries designed by Mizu are published on Maven Central.
mavenCentral()
}
dependencies {
val implementation by configurations
implementation("org.jetbrains", "annotations", "23.0.0")
}
configure<JavaPluginExtension> {
toolchain {
languageVersion.set(
JavaLanguageVersion.of(javaVersion.ordinal + 1)
)
}
withJavadocJar()
withSourcesJar()
}
configure<PublishingExtension> {
publications {
create("mavenJava", MavenPublication::class.java) {
from(components["java"])
val gitHost = "github.com"
val repoId = "MizuSoftware/oshanraina"
pom {
name.set("Oshanraina")
url.set("https://github.com/MizuSoftware/Oshanraina")
description.set("")
licenses {
license {
name.set("GNU Affero General Public License")
url.set("https://www.gnu.org/licenses/agpl-3.0.en.html")
distribution.set("repo")
}
}
developers {
developer {
id.set("Shyrogan")
name.set("Sebastien VIAL")
}
developer {
id.set("lambdagg")
}
developer {
id.set("xtrm")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://$gitHost/$repoId.git")
developerConnection.set("scm:git:ssh://$gitHost/$repoId.git")
url.set("https://$gitHost/$repoId")
}
}
// Configure the signing extension to sign this Maven artifact.
configure<SigningExtension> {
isRequired = project.properties["signing.keyId"] != null
sign(this@create)
}
}
}
}
}