-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
76 lines (61 loc) · 1.67 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
plugins {
id("java-library")
id("jacoco")
id("idea")
id("eclipse")
id("maven-publish")
id("org.cadixdev.licenser") version "0.6.1"
}
group = "com.github.clubobsidian"
version = "4.1.0"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
}
license {
header.set(resources.text.fromFile(file("HEADER.txt")))
include("**/*.java")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}
tasks {
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.release.set(11)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}
processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
}
test {
useJUnitPlatform()
}
}
repositories {
mavenCentral()
}
var configurateVersion = "4.1.2"
var junitVersion = "5.9.1"
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
api("org.spongepowered:configurate-yaml:$configurateVersion")
api("org.spongepowered:configurate-jackson:$configurateVersion")
api("org.spongepowered:configurate-hocon:$configurateVersion")
api("org.spongepowered:configurate-xml:$configurateVersion")
}