generated from Mr-EmPee-Archive/Minecraft-Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
73 lines (57 loc) · 1.75 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
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
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
id("org.gradle.java-library")
id("org.gradle.checkstyle")
id("io.freefair.lombok") version "6.6.3"
id("com.github.johnrengelman.shadow") version "8.1.0"
id("io.papermc.paperweight.userdev") version "1.5.2"
id("xyz.jpenilla.run-paper") version "2.0.1"
id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
}
group = "ml.empee"
version = "1.0.0-SNAPSHOT"
var basePackage = "ml.empee.orbitaltrial"
bukkit {
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
main = "${basePackage}.OrbitalTrial"
apiVersion = "1.13"
authors = listOf("Mr. EmPee")
}
repositories {
maven("https://jitpack.io")
mavenCentral()
}
dependencies {
paperweight.paperDevBundle("1.19.3-R0.1-SNAPSHOT")
compileOnly("org.xerial:sqlite-jdbc:3.34.0")
// Core depends
implementation("com.github.Mr-EmPee:SimpleIoC:1.7.1")
implementation("me.lucko:commodore:2.2") {
exclude("com.mojang", "brigadier")
}
implementation("cloud.commandframework:cloud-paper:1.8.3")
implementation("cloud.commandframework:cloud-annotations:1.8.3")
// Utilities
implementation("com.github.Mr-EmPee:SimpleLectorem:1.0.0")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
}
tasks {
shadowJar {
isEnableRelocation = false
relocationPrefix = "$basePackage.relocations"
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
}
java {
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}