69 lines
1.9 KiB
Groovy
69 lines
1.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
maven {
|
|
url = uri("https://repo.eclipse.org/content/repositories/paho-releases/")
|
|
}
|
|
maven {
|
|
url = uri("https://plugins.gradle.org/m2/")
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:5.2.0"
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
apply plugin: 'application'
|
|
|
|
group 'com.kmlabz.k8s'
|
|
version '0.0.1'
|
|
mainClassName = "io.ktor.server.tomcat.EngineMain"
|
|
|
|
sourceSets {
|
|
main.kotlin.srcDirs = main.java.srcDirs = ['src']
|
|
main.resources.srcDirs = ['resources']
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven { url 'https://kotlin.bintray.com/ktor' }
|
|
maven { url 'https://kotlin.bintray.com/kotlinx' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation "io.ktor:ktor-server-tomcat:$ktor_version"
|
|
implementation "ch.qos.logback:logback-classic:$logback_version"
|
|
implementation "io.ktor:ktor-client-core:$ktor_version"
|
|
implementation "io.ktor:ktor-client-core-jvm:$ktor_version"
|
|
implementation "io.ktor:ktor-client-apache:$ktor_version"
|
|
implementation "io.ktor:ktor-client-json-jvm:$ktor_version"
|
|
implementation "io.ktor:ktor-client-gson:$ktor_version"
|
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
|
|
}
|
|
|
|
kotlin.experimental.coroutines = 'enable'
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
baseName = 'birb-integrated-bench'
|
|
classifier = null
|
|
version = null
|
|
} |