Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created October 9, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recursivecodes/5aeab844541169b7bcab07f91c56bb55 to your computer and use it in GitHub Desktop.
Save recursivecodes/5aeab844541169b7bcab07f91c56bb55 to your computer and use it in GitHub Desktop.
build.gradle
plugins {
    id 'java'
    id 'application'
}
group 'codes.recursive'
version '0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
    mavenCentral()
}
application {
    mainClassName = 'codes.recursive.KafkaProducerExample'
}
dependencies {
    compile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.3.0'
    testCompile group: 'junit', name: 'junit', version: '4.12'
}
tasks.withType(JavaExec) {
    systemProperties System.properties
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment