-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
111 lines (92 loc) · 3.33 KB
/
build.gradle
File metadata and controls
111 lines (92 loc) · 3.33 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import java.nio.charset.StandardCharsets
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.jetbrains.kotlin.jvm' version '2.1.0'
// id 'io.papermc.paperweight.userdev' version "1.7.3"
}
group = 'com.dank1234'
version = '0.1'
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven { url "https://repo.dmulloy2.net/repository/public/" }
maven { url = uri("https://maven.enginehub.org/repo/") }
flatDir {
dirs 'src/main/libs'
}
}
dependencies {
// paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("net.luckperms:api:5.4")
implementation("org.mariadb.jdbc:mariadb-java-client:3.4.1")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation(platform("com.intellectualsites.bom:bom-newest:1.51"))
implementation("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit")
implementation("org.graalvm.sdk:graal-sdk:22.3.0")
implementation("org.graalvm.js:js:22.3.0")
implementation("org.yaml:snakeyaml:2.0")
implementation('org.json:json:20231013')
implementation("org.reflections:reflections:0.9.12")
implementation("org.jetbrains:annotations:24.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm-host:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-scripting-common:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-script-runtime:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:2.1.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.20.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.20.0")
}
def targetJavaVersion = 21
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
tasks.withType(Javadoc).configureEach {
failOnError = false
options.encoding("UTF-8")
}
tasks.compileJava {
options.encoding = StandardCharsets.UTF_8.name()
}
tasks.javadoc {
options.encoding = StandardCharsets.UTF_8.name()
}
tasks.withType(Zip).configureEach {
zip64 = true
}
tasks.shadowJar {
archiveFileName = "Rune-Core-v${version}.jar"
destinationDirectory = file("E:\\Test-Server\\plugins")
// destinationDirectory = file("S:/opt/mcsmanager/daemon/data/InstanceData/7fa7bc4eb4544091add082ae0b906aa0/plugins")
mergeServiceFiles()
}
tasks.build {
dependsOn(tasks.shadowJar)
}
kotlin {
jvmToolchain(21)
}