forked from chanbakjsd/TerraOceanPlugin
28 lines
763 B
Kotlin
28 lines
763 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.3.50"
|
|
}
|
|
|
|
group = "com.terraocean"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
}
|
|
|
|
dependencies {
|
|
val ktorVersion = "1.2.4"
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
|
|
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")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
} |