2020-10-21 16:02:57 +02:00
|
|
|
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:1.4.10"
|
|
|
|
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 = '1.0-SNAPSHOT'
|
|
|
|
mainClassName = "MainKt"
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.kotlin.srcDirs = main.java.srcDirs = ['src/main/kotlin']
|
|
|
|
main.resources.srcDirs = ['src/main/resources']
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin.experimental.coroutines = 'enable'
|
|
|
|
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10"
|
2020-10-21 18:13:27 +02:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.0-M1'
|
2020-10-21 16:02:57 +02:00
|
|
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
baseName = 'mqtt-benchmark-component'
|
|
|
|
classifier = null
|
|
|
|
version = null
|
|
|
|
}
|