forked from hollow-cube/schem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
87 lines (71 loc) · 2.18 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
plugins {
`java-library`
`maven-publish`
}
group = "dev.hollowcube"
version = System.getenv("TAG_VERSION") ?: "dev"
description = "Schematic reader and writer for Minestom"
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
compileOnly(libs.minestom)
testImplementation(libs.minestom)
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation(libs.bundles.logback)
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
withSourcesJar()
withJavadocJar()
}
tasks.test {
useJUnitPlatform()
}
publishing {
repositories {
maven("https://maven.protobit.space/snapshots") {
name = "protobit"
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications.create<MavenPublication>("maven") {
groupId = "dev.hollowcube"
artifactId = "schem"
version = project.version.toString()
from(project.components["java"])
pom {
name.set(artifactId)
description.set(project.description)
url.set("https://github.com/ProtobitMC/schem")
licenses {
license {
name.set("MIT")
url.set("https://github.com/ProtobitMC/schem/blob/main/LICENSE")
}
}
developers {
developer {
id.set("mworzala")
name.set("Matt Worzala")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/ProtobitMC/schem.git")
developerConnection.set("scm:git:[email protected]:ProtobitMC/schem.git")
url.set("https://github.com/ProtobitMC/schem")
tag.set(System.getenv("TAG_VERSION") ?: "HEAD")
}
ciManagement {
system.set("Github Actions")
url.set("https://github.com/ProtobitMC/schem/actions")
}
}
}
}