Skip to content

Commit

Permalink
chore[producer-datagen]: add single jar distro
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Sep 5, 2022
1 parent f0e95f1 commit 58d26c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cli-producer-datagen-ea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
with:
name: artifacts
path: |
producer-datagen/target/*.jar
producer-datagen/target/*.zip
producer-datagen/target/*.tar.gz
Expand Down
30 changes: 30 additions & 0 deletions producer-datagen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,26 @@
<parameters>${maven.compiler.parameters}</parameters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>kafka.cli.emulator.Cli</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down Expand Up @@ -264,6 +284,16 @@
</brew>
</packagers>
<distributions>
<kfk-producer-datagen-exec>
<name>kfk-producer-datagen-exec</name>
<type>SINGLE_JAR</type>
<artifacts>
<artifact>
<path>{{artifactsDir}}/kafka-cli-producer-datagen-{{projectVersion}}.jar</path>
<transform>artifacts/{{distributionName}}.jar</transform>
</artifact>
</artifacts>
</kfk-producer-datagen-exec>
<kfk-producer-datagen>
<name>kfk-producer-datagen</name>
<type>NATIVE_IMAGE</type>
Expand Down

0 comments on commit 58d26c5

Please sign in to comment.