2020-10-21 23:24:29 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2020-10-22 00:14:00 +02:00
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.eclipse.org/content/repositories/paho-releases/")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri("https://plugins.gradle.org/m2/")
|
|
|
|
}
|
2020-10-21 23:24:29 +02:00
|
|
|
}
|
2020-10-22 00:14:00 +02:00
|
|
|
|
2020-10-21 23:24:29 +02:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2020-10-22 00:12:27 +02:00
|
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:5.2.0"
|
2020-10-21 23:24:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-22 00:12:27 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
2020-10-21 23:24:29 +02:00
|
|
|
apply plugin: 'kotlin'
|
2020-10-22 00:12:27 +02:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2020-10-21 23:24:29 +02:00
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
group 'com.kmlabz.k8s'
|
|
|
|
version '0.0.1'
|
2020-10-22 00:21:19 +02:00
|
|
|
mainClassName = "io.ktor.server.tomcat.EngineMain"
|
2020-10-21 23:24:29 +02:00
|
|
|
|
|
|
|
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"
|
2020-10-22 00:21:19 +02:00
|
|
|
implementation "io.ktor:ktor-server-tomcat:$ktor_version"
|
2020-10-21 23:24:29 +02:00
|
|
|
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"
|
2020-10-22 00:21:19 +02:00
|
|
|
implementation "io.ktor:ktor-client-apache:$ktor_version"
|
2020-10-21 23:24:29 +02:00
|
|
|
implementation "io.ktor:ktor-client-json-jvm:$ktor_version"
|
|
|
|
implementation "io.ktor:ktor-client-gson:$ktor_version"
|
2020-10-22 00:12:27 +02:00
|
|
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
|
2020-10-21 23:24:29 +02:00
|
|
|
}
|
2020-10-22 00:12:27 +02:00
|
|
|
|
|
|
|
kotlin.experimental.coroutines = 'enable'
|
|
|
|
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2020-10-22 00:14:00 +02:00
|
|
|
baseName = 'birb-integrated-bench'
|
2020-10-22 00:12:27 +02:00
|
|
|
classifier = null
|
|
|
|
version = null
|
|
|
|
}
|