|
|
@ -1,7 +1,9 @@
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.3.50"
|
|
|
|
kotlin("jvm") version "1.3.50"
|
|
|
|
|
|
|
|
id("com.github.johnrengelman.shadow") version "5.1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
group = "com.terraocean"
|
|
|
|
group = "com.terraocean"
|
|
|
@ -11,18 +13,22 @@ repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
|
|
|
|
|
|
maven("https://jitpack.io")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
dependencies {
|
|
|
|
val ktorVersion = "1.2.4"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
|
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.2.1")
|
|
|
|
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
|
|
|
|
|
|
|
|
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
|
|
|
|
|
|
|
|
compileOnly("org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT")
|
|
|
|
compileOnly("org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT")
|
|
|
|
|
|
|
|
implementation("com.github.hazae41:mc-kutils:3.3.2")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType<ShadowJar> {
|
|
|
|
|
|
|
|
archiveBaseName.set("TerraOcean")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|