-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (58 loc) · 1.72 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
70
71
72
73
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.3.31"
kotlin("kapt") version "1.3.31"
id("com.github.johnrengelman.shadow") version "4.0.4"
}
val implementation by project.configurations
implementation.isCanBeResolved = true
group = "arven"
version = "0.3.0"
repositories {
mavenCentral()
jcenter()
maven {
setUrl("https://jitpack.io")
}
maven {
setUrl("https://repo.spongepowered.org/maven")
}
maven {
setUrl("https://kotlin.bintray.com/kotlinx")
}
}
dependencies {
// Kotlin
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.2.1")
// Sponge
kapt("org.spongepowered:spongeapi:7.1.0")
compileOnly("org.spongepowered:spongeapi:7.1.0")
// Config System
implementation("com.github.TheFrontier:SKD:094ab59a02")
// Sponge Platform extension methods
implementation("com.github.TheFrontier:SKE:0.3.0")
// Feature System
implementation("com.github.TheFrontier:SKF:0.3.0")
// Command Tree System
implementation("com.github.TheFrontier:SKPC:0.3.0")
// Database ORM
implementation("org.jetbrains.exposed:exposed:0.13.6")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<ShadowJar> {
this.classifier = "dist"
this.configurations = listOf(implementation)
dependencies {
exclude(dependency("org.slf4j:slf4j-api:.*"))
exclude(dependency("com.h2database:h2:.*"))
}
}