-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
75 lines (60 loc) · 1.69 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
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.trove"
version = "3.0"
repositories {
mavenCentral()
}
dependencies {
api("org.jetbrains:annotations:24.0.1")
val minestom = "net.minestom:minestom-snapshots:f8b6eb0d0b"
compileOnly(minestom)
testImplementation(minestom)
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates("net.goldenstack", "trove", version.toString())
pom {
name.set("trove")
description.set("Loot table parser and evaluator for Minestom")
url.set("https://github.com/goldenstack/trove")
licenses {
license {
name.set("MIT")
url.set("https://github.com/goldenstack/trove/blob/master/LICENSE")
}
}
developers {
developer {
id.set("goldenstack")
name.set("GoldenStack")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/goldenstack/trove.git")
developerConnection.set("scm:git:[email protected]:goldenstack/trove.git")
url.set("https://github.com/goldenstack/trove")
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
}