-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
33 lines (29 loc) · 921 Bytes
/
build.gradle
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
plugins {
id 'java'
}
group = 'top.mrxiaom'
version = '1.2.1'
repositories {
mavenCentral()
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.11.6'
}
def targetJavaVersion = 8
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}