configure the project with Gradle build file build.gradle
Run following command to obtain Gradle Wrapper:
gradle wrapper
add new file ccloud.properties
rename dev-template.properties to dev.properties
cat configuration/ccloud.properties >> configuration/dev.properties
create a new java class KafkaProducerCallbackApplication.java
create a file input.txt
in the terminal, run
./gradlew shadowJar
run application:
java -jar build/libs/kafka-producer-application-callback-standalone-0.0.1.jar configuration/dev.properties input.txt
create a test file test.properties
create new java test class file KafkaProducerCallbackApplicationTest.java
./gradlew test
create a production config file prod.properties
gradle jibDockerBuild --image=io.confluent.developer/kafka-producer-application-callback-join:0.0.1
docker run -v $PWD/configuration/prod.properties:/config.properties io.confluent.developer/kafka-producer-application-callback-join:0.0.1 config.properties