-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (55 loc) · 1.64 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
plugins {
java
kotlin("jvm") version "1.3.61"
kotlin("kapt") version "1.3.61"
id("org.jetbrains.kotlin.plugin.serialization") version "1.3.60"
id("com.github.johnrengelman.shadow") version "4.0.4"
id("com.qixalite.spongestart2") version "4.0.0"
}
group = "arvenwood"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.spongepowered.org/maven")
// PlaceholderAPI
maven("https://jitpack.io")
}
dependencies {
// Kotlin
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0")
// Shaded
runtime(kotlin("stdlib-jdk8"))
runtime(kotlin("reflect"))
runtime("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.3")
runtime("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0")
// Sponge
compileOnly("org.spongepowered:spongeapi:7.1.0")
kapt("org.spongepowered:spongeapi:7.1.0")
// PlaceholderAPI
compileOnly("com.github.ronaldburns:PlaceholderAPI:4.5.1")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
val shadowJar: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar by tasks
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs = listOf("-Xinline-classes")
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
archiveClassifier.set("dist")
}
}
spongestart {
minecraft = "1.12.2"
}
artifacts {
add("archives", shadowJar)
}