messagequeue-glue/build.gradle.kts

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-05-22 02:40:51 +02:00
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:5.2.0")
}
}
plugins {
2020-05-22 03:16:53 +02:00
application
2020-05-22 02:40:51 +02:00
kotlin("jvm") version "1.3.72"
}
group = "com.kmlabz"
version = "1.0-SNAPSHOT"
2020-05-22 03:16:53 +02:00
application {
mainClassName = "MainKt"
}
2020-05-22 02:40:51 +02:00
repositories {
mavenCentral()
jcenter()
}
apply(plugin= "com.github.johnrengelman.shadow")
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.rabbitmq:amqp-client:2.7.1")
implementation("com.viartemev:the-white-rabbit:0.0.5")
implementation("com.google.code.gson:gson:2.8.6")
}
tasks {
2020-05-22 03:16:53 +02:00
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set("messagequeue-glue")
classifier = null
version = null
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "Main"))
}
}
2020-05-22 02:40:51 +02:00
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
}