Skip to content

Instantly share code, notes, and snippets.

@TristinDavis
Forked from kijanowski/build.gradle
Last active September 6, 2020 20:27
Show Gist options
  • Save TristinDavis/3a7a1386099c4766da2c9ed43b24bed7 to your computer and use it in GitHub Desktop.
Save TristinDavis/3a7a1386099c4766da2c9ed43b24bed7 to your computer and use it in GitHub Desktop.
plugins {
id 'java'
id 'application'
}
repositories {
jcenter()
}
dependencies {
compile 'org.apache.kafka:kafka-streams:2.3.0'
compile 'org.slf4j:slf4j-api:1.8.0-beta4'
compile 'org.slf4j:slf4j-simple:1.8.0-beta4'
testImplementation 'junit:junit:4.12'
}
targetCompatibility = '12'
sourceCompatibility = '12'
mainClassName = 'ks.jlink.App'
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'ks.jlink.App'
}
baseName = 'kafka-streams-regular'
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment