This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
89 lines (76 loc) · 2.34 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
85
86
87
88
89
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription.Permission.*
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
kotlin("jvm") version "1.8.0"
`maven-publish`
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
id("com.github.johnrengelman.shadow") version "2.0.4"
}
repositories {
mavenLocal()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
}
group = "io.misskey.mc.timeattacker"
version = "4.0.0"
description = "Timeattack Plugin"
java.sourceCompatibility = JavaVersion.VERSION_17
bukkit {
name = "Timeattacker"
main = "io.misskey.mc.timeattacker.TimeattackerPlugin"
version = getVersion().toString()
apiVersion = "1.19"
commands {
register("counter") {
description = "カウンター管理"
usage = "/counter <register/unregister/cancel/bind/info/list/resetdaily>"
permission = "timeattacker.command.counter"
}
register("ranking") {
description = "ランキング管理"
usage = "/ranking <create/delete/query/list/set/unset/hologram>"
permission = "timeattacker.command.ranking"
}
register("xdebug") {
description = "timeattacker Debug Command"
usage = "/xdebug"
permission = "timeattacker.command.xdebug"
}
register("__core_gui_event__") {
description = "?"
usage = "?"
}
}
permissions {
register("timeattacker.command.counter") {
default = Default.OP
}
register("timeattacker.command.ranking") {
default = Default.OP
}
register("timeattacker.command.xdebug") {
default = Default.OP
}
}
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
incremental = true
}
}
tasks.jar {
archiveFileName.set("${project.name}.jar")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}