-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (47 loc) · 1.08 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
plugins {
java
`maven-publish`
}
group = "net.theevilreaper.canis"
version = "1.0.0-SNAPSHOT"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
compileOnly(libs.minestom)
testImplementation(libs.minestom)
testImplementation(libs.minestom.test)
testImplementation(libs.junit.jupiter)
testRuntimeOnly(libs.junit.jupiter.engine)
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.properties["group"] as String?
artifactId = project.name
version = project.properties["version"] as String?
from(components["java"])
}
}
}
tasks {
jar {
archiveFileName.set("${rootProject.name}.${archiveExtension.getOrElse("jar")}")
}
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}