-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
43 lines (37 loc) 路 1.23 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
id("io.papermc.paperweight.userdev")
}
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
paperDevBundle("1.20.2-R0.1-SNAPSHOT")
compileOnly(project(":bukkit:DreamCore"))
compileOnly(project(":bukkit:DreamCasamentos"))
compileOnly(project(":bukkit:DreamCash"))
compileOnly(project(":bukkit:DreamChat"))
compileOnly(project(":bukkit:DreamClubes"))
compileOnly(project(":bukkit:DreamLoja"))
compileOnly(project(":bukkit:DreamRaffle"))
compileOnly(project(":bukkit:DreamVanish"))
compileOnly(files("../../libs/mcMMO.jar"))
compileOnly("net.luckperms:api:5.4")
compileOnly("net.skinsrestorer:skinsrestorer-api:14.2.8")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks {
reobfJar {
// For some reason the userdev plugin is using "unspecified" as the suffix, and that's not a good name
// So we are going to change it to "PluginName-reobf.jar"
outputJar.set(layout.buildDirectory.file("libs/${project.name}-reobf.jar"))
}
// Configure reobfJar to run when invoking the build task
build {
dependsOn(reobfJar)
}
}