-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
43 lines (36 loc) · 978 Bytes
/
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
plugins {
id("java")
}
group = "com.dethemium"
version = "1.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.dmulloy2.net/repository/public/")
}
dependencies {
compileOnly(group = "org.spigotmc", name = "spigot-api", version = "1.12-R0.1-SNAPSHOT")
compileOnly(group = "com.comphenix.protocol", name = "ProtocolLib", version = "4.8.0")
}
defaultTasks("clean", "build")
tasks {
processResources {
val placeholders = mapOf(
"name" to project.name,
"group" to project.group,
"version" to project.version
)
filesMatching("plugin.yml") {
expand(placeholders)
}
}
jar {
archiveFileName.set("${project.name}.jar")
}
}