-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (37 loc) · 1.06 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
import kr.entree.spigradle.kotlin.spigot
plugins {
kotlin("jvm") version "1.3.71"
id("kr.entree.spigradle") version "1.2.2"
}
group = "com.gmail@kmj57667" // 본인의 홈페이지 주소 또는 이메일 주소를 거꾸로 적음
version = "1.0.0"
repositories {
maven("https://maven.heartpattern.kr/repository/maven-public/") // 마인크래프트 관련 artifact들을 모아둔 repo
}
dependencies {
implementation(kotlin("stdlib-jdk8")) // kotlin stdlib
compileOnly(spigot("1.12.2")) // spigot api
}
spigot { // plugin.yml 설정
authors = listOf("HeartPattern")
}
val shade = configurations.create("shade")
shade.extendsFrom(configurations.implementation.get())
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
from(
shade.map {
if (it.isDirectory)
it
else
zipTree(it)
}
)
}
}