generated from sya-ri/SpigotPluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (36 loc) · 1.26 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
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.5.10"
id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("net.minecrell.plugin-yml.bukkit") version "0.4.0"
}
version = "1.0.0"
repositories {
mavenCentral()
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
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.3") {
exclude(group = "org.spigotmc", module = "spigot-api")
}
}
configure<KtlintExtension> {
version.set("0.41.0")
}
tasks.withType<ShadowJar> {
configurations = listOf(shadowImplementation)
archiveClassifier.set("")
}
configure<BukkitPluginDescription> {
name = project.name
version = project.version.toString()
main = "com.github.noneviolet.jumppad.Main"
apiVersion = "1.16"
}