-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (42 loc) · 1.25 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
plugins {
java
kotlin("jvm") version "1.3.72"
kotlin("plugin.serialization") version "1.3.72"
`maven-publish`
}
group = "com.expansemc"
version = "0.3.1"
repositories {
mavenCentral()
// Spigot
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
// Bungeecord text
maven("https://oss.sonatype.org/content/groups/public/")
// Configurate and math
maven("https://repo.spongepowered.org/maven")
}
dependencies {
compileOnly(kotlin("stdlib-jdk8"))
compileOnly(kotlin("reflect"))
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0")
compileOnly("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT")
compileOnly("org.spongepowered:configurate-core:3.6.1")
compileOnly("org.spongepowered:math:2.0.0-SNAPSHOT")
compileOnly(project(":bending-api"))
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
jar {
val bendingApi = project(":bending-api")
archiveBaseName.set("BendingClassic")
archiveVersion.set("v0.2.0-a${bendingApi.properties["version.api"]!!}")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}