-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
72 lines (60 loc) · 1.71 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("java-library")
id("maven-publish")
id("signing")
id("com.vanniktech.maven.publish") version "0.30.0"
}
group = "net.goldenstack.window"
version = "1.1"
description = "Useful API for Minestom inventories"
repositories {
mavenCentral()
}
dependencies {
val minestom = "net.minestom:minestom-snapshots:96543a894f"
compileOnly(minestom)
testImplementation(minestom)
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates("net.goldenstack", "window", version.toString())
pom {
name.set("window")
description.set("Useful API for Minestom inventories")
url.set("https://github.com/goldenstack/window")
licenses {
license {
name.set("MIT")
url.set("https://github.com/goldenstack/window/blob/master/LICENSE")
}
}
developers {
developer {
id.set("goldenstack")
name.set("GoldenStack")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/goldenstack/window.git")
developerConnection.set("scm:git:[email protected]:goldenstack/window.git")
url.set("https://github.com/goldenstack/window")
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
}