-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
82 lines (70 loc) · 1.88 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
import com.diffplug.gradle.spotless.SpotlessPlugin
import de.chojo.PublishData
plugins {
java
alias(libs.plugins.spotless)
alias(libs.plugins.publishdata)
`maven-publish`
}
group = "de.eldoria"
version = "1.0.9"
subprojects {
apply {
plugin<SpotlessPlugin>()
plugin<JavaPlugin>()
plugin<PublishData>()
plugin<MavenPublishPlugin>()
}
}
allprojects {
repositories {
// mavenLocal {
// content {
// includeGroup("de.eldoria.util")
// }
// }
mavenCentral()
maven("https://eldonexus.de/repository/maven-proxies/")
maven("https://eldonexus.de/repository/maven-public/")
maven("https://jitpack.io")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
dependencies {
val libs = rootProject.libs
val testlibs = rootProject.testlibs
compileOnly(libs.paper.latest)
compileOnly(libs.jetbrains.annotations)
testImplementation(libs.spigot.v16)
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation(testlibs.mockbukkit)
testImplementation("org.junit.jupiter", "junit-jupiter")
}
spotless {
java {
licenseHeaderFile(rootProject.file("HEADER.txt"))
target("**/*.java")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}
}