-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle.kts
50 lines (42 loc) · 1.32 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
plugins {
id("java-library")
id("com.github.hierynomus.license") version "0.16.1"
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
subprojects {
apply {
plugin("java-library")
plugin("com.github.hierynomus.license")
}
group = "dev.triumphteam"
version = "3.1.11"
dependencies {
compileOnly("org.jetbrains:annotations:21.0.1")
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
val adventureVersion = "4.17.0"
api("net.kyori:adventure-api:$adventureVersion")
api("net.kyori:adventure-text-serializer-legacy:$adventureVersion")
api("net.kyori:adventure-text-serializer-gson:$adventureVersion")
api("net.kyori:adventure-platform-bukkit:4.3.3")
}
license {
header = rootProject.file("LICENSE")
encoding = "UTF-8"
mapping("java", "JAVADOC_STYLE")
include("**/*.java")
}
tasks {
withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
options.encoding = "UTF-8"
}
}
}