-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmapmaker.java-library.gradle.kts
More file actions
56 lines (47 loc) · 1.46 KB
/
mapmaker.java-library.gradle.kts
File metadata and controls
56 lines (47 loc) · 1.46 KB
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
plugins {
`java-library`
}
repositories {
// This code is duplicated in the java-binary configuration, should make any changes there also.
val centralLibs = listOf(libs.minestom, libs.polar, libs.posthog, libs.adventure.api)
.mapNotNull { it.get().version }
if (centralLibs.any { it == "dev" })
mavenLocal()
if (centralLibs.any { it.endsWith("-SNAPSHOT") || it.matches(Regex("^.+-(\\d{8})\\.(\\d{6})-(\\d+)\$")) }) {
maven(url = "https://central.sonatype.com/repository/maven-snapshots/") {
content {
includeGroup("net.minestom")
includeGroup("dev.hollowcube")
}
}
}
mavenCentral()
maven(url = "https://maven.noxcrew.com/public") {
content {
includeGroup("com.noxcrew.noxesium")
}
}
maven(url = "https://repo.feathermc.net/artifactory/maven-releases") {
content {
includeGroup("net.digitalingot.feather-server-api")
}
}
}
dependencies {
implementation(libs.autoservice.annotations)
annotationProcessor(libs.autoservice)
implementation(libs.annotations)
implementation(libs.slf4j)
testImplementation(libs.junit.api)
testImplementation(libs.junit.params)
testImplementation(libs.junit.engine)
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(24)
vendor = JvmVendorSpec.GRAAL_VM
}
}
tasks.withType<Test> {
useJUnitPlatform()
}