This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
generated from sya-ri/SpigotPluginTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (41 loc) · 1.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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import org.jlleitschuh.gradle.ktlint.KtlintExtension
plugins {
kotlin("jvm") version "1.4.32"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
id("com.github.johnrengelman.shadow") version "6.1.0"
id("net.minecrell.plugin-yml.bukkit") version "0.3.0"
}
version = "1.1.1"
repositories {
mavenCentral()
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven(url = "https://m2.dv8tion.net/releases")
}
val shadowImplementation: Configuration by configurations.creating
configurations["implementation"].extendsFrom(shadowImplementation)
dependencies {
shadowImplementation(kotlin("stdlib"))
implementation("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
shadowImplementation("com.github.sya-ri:EasySpigotAPI:2.3.0") {
exclude(group = "org.spigotmc", module = "spigot-api")
}
shadowImplementation("net.dv8tion:JDA:4.2.1_253")
}
configure<KtlintExtension> {
version.set("0.41.0")
}
tasks.withType<ShadowJar> {
configurations = listOf(shadowImplementation)
archiveClassifier.set("")
minimize()
}
configure<BukkitPluginDescription> {
name = project.name
version = project.version.toString()
main = "com.github.syari.plugin.talk.with.near.player.Main"
author = "sya_ri"
website = "https://github.com/sya-ri/TalkWithNearPlayer"
apiVersion = "1.16"
}