Skip to content

Instantly share code, notes, and snippets.

@krasnoperov
Created June 19, 2019 04:11
Show Gist options
  • Save krasnoperov/e5f8994624cdc0793210c0a4d5b87260 to your computer and use it in GitHub Desktop.
Save krasnoperov/e5f8994624cdc0793210c0a4d5b87260 to your computer and use it in GitHub Desktop.
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
java
kotlin("jvm") version "1.3.20"
}
group = "com.songsterr.events"
version = "1.0.${System.getenv("BUILD_NUMBER") ?: "0-SNAPSHOT"}"
application {
mainClassName = "com.songsterr.events.MainKt"
applicationName = "service"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
compile("io.ktor:ktor-server-netty:1.1.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1")
// ...
compile("org.slf4j:slf4j-api:1.7.25")
compile("org.slf4j:slf4j-log4j12:1.7.25")
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment