TerraOceanPlugin/KotlinPlugin/build.gradle.kts

28 lines
763 B
Plaintext

2019-10-05 09:54:42 +07:00
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"
}