-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (41 loc) · 1.39 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
id 'java'
id 'org.jetbrains.kotlin.jvm' version '2.0.0-RC1'
id "io.papermc.paperweight.userdev" version "2.0.0-beta.8"
}
group = 'com.github.hapily04'
version = '2.3'
repositories {
mavenCentral()
maven {
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
url = "https://oss.sonatype.org/content/groups/public/"
}
}
dependencies {
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
compileOnly "io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT"
implementation 'dev.jorel:commandapi-bukkit-shade:9.7.0'
implementation 'dev.hollowcube:polar:1.12.1'
implementation 'me.nullicorn:Nedit:2.2.0'
implementation 'io.github.jglrxavpok.hephaistos:common:2.6.1'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.0-RC1' // required for hephaistos
}
def targetJavaVersion = 21
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.set(targetJavaVersion)
}
}