This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
84 lines (69 loc) · 2.47 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
74
75
76
77
78
79
80
81
82
83
84
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
kotlin("jvm") version "1.8.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
}
group = "com.matzhilven.staffutilities"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://oss.sonatype.org/content/repositories/central")
}
val exposedVersion: String by project
dependencies {
compileOnly("org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("org.bstats:bstats-bukkit:3.0.1")
}
bukkit {
main = "com.matzhilven.staffutilities.StaffUtilities"
name = "StaffUtilities"
author = "MatzHilven"
libraries = listOf(
"org.jetbrains.kotlin:kotlin-stdlib:jdk8",
)
bukkit.version = version
commands {
register("punish") {
description = "Opens the punishment GUI"
permission = "staffutilities.punish"
usage = "/punish <player>"
aliases = listOf("pun")
}
}
permissions {
register("staffutilities.*") {
description = "Allows the player to use all StaffUtilities commands"
children = listOf(
"staffutilities.punish"
)
default = BukkitPluginDescription.Permission.Default.OP
}
register("staffutilities.punish") {
description = "Allows the player to use the /punish command"
default = BukkitPluginDescription.Permission.Default.OP
}
}
}
tasks {
shadowJar {
relocate("org.bstats", "com.matzhilven.bstats")
destinationDirectory.set(file("C:\\Users\\hilve\\Documents\\Servers\\1.8 - Wine\\plugins"))
}
compileJava {
options.compilerArgs.add("-parameters")
options.isFork = true
options.forkOptions.executable = "javac"
}
compileKotlin {
kotlinOptions.javaParameters = true
}
}