Skip to content

Instantly share code, notes, and snippets.

@kijanowski
Created July 8, 2019 08:41
Show Gist options
  • Save kijanowski/cc800fc6a280d675bc4d6c897114857e to your computer and use it in GitHub Desktop.
Save kijanowski/cc800fc6a280d675bc4d6c897114857e 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