-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
34 lines (30 loc) · 975 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
34
plugins {
id 'java'
}
group = 'top.mrxiaom'
version = '1.2.3'
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'
implementation 'org.jetbrains:annotations:24.0.0'
}
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
}
}