-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (47 loc) · 1.19 KB
/
build.gradle
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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
group 'gl.ky'
version '1.0.0'
archivesBaseName = 'Adeyaka'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://jitpack.io' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/public/' }
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.6.10'
implementation 'org.bstats:bstats-bukkit:2.2.1'
implementation 'org.bstats:bstats-base:2.2.1'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
}
sourceSets {
main {
kotlin {
srcDir 'src/code'
}
resources {
srcDir 'src/resources'
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
shadowJar {
dependencies {
include dependency('org.jetbrains.kotlin:kotlin-stdlib:1.6.10')
include dependency('org.bstats:bstats-bukkit:2.2.1')
include dependency('org.bstats:bstats-base:2.2.1')
}
relocate 'org.bstats', 'gl.ky.adeyaka.bstats'
relocate 'kotlin', 'gl.ky.adeyaka.kt'
relocate 'kotlinx', 'gl.ky.adeyaka.ktx'
minimize()
}
build.dependsOn shadowJar