forked from md5sha256/addictive-experience
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
63 lines (48 loc) · 1.34 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
plugins {
java
idea
eclipse
}
group = "io.github.md5sha256"
version = "0.0.1-SNAPSHOT"
val javaVersion = 21;
java.toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
subprojects {
group = rootProject.group
version = rootProject.version
apply {
plugin<JavaPlugin>()
plugin<JavaLibraryPlugin>()
plugin<IdeaPlugin>()
plugin<EclipsePlugin>()
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
repositories {
mavenCentral()
maven {
name = "spigot-repo"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
content {
includeGroup("org.bukkit")
includeGroup("org.spigotmc")
}
}
maven {
name = "paper-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
}
tasks {
withType(JavaCompile::class) {
options.release.set(javaVersion)
options.encoding = Charsets.UTF_8.name()
options.isDeprecation = true
}
withType(Javadoc::class) {
options.encoding = Charsets.UTF_8.name()
}
withType(ProcessResources::class) {
filteringCharset = Charsets.UTF_8.name()
}
}
}