Skip to content

Commit

Permalink
chore[context]: add jar to release outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Sep 5, 2022
1 parent deb1429 commit f0e95f1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cli-context-ea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
with:
name: artifacts
path: |
context/target/*.jar
context/target/*.zip
context/target/*.tar.gz
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cli-context-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
with:
name: artifacts
path: |
context/target/*.jar
context/target/*.zip
context/target/*.tar.gz
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cli-emulator-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
with:
name: artifacts
path: |
emulator/target/*.jar
emulator/target/*.zip
emulator/target/*.tar.gz
Expand Down
30 changes: 30 additions & 0 deletions context/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,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.context.Cli</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down Expand Up @@ -252,6 +272,16 @@
</brew>
</packagers>
<distributions>
<kfk-ctx-exec>
<name>kfk-ctx-exec</name>
<type>SINGLE_JAR</type>
<artifacts>
<artifact>
<path>{{artifactsDir}}/kafka-cli-context-{{projectVersion}}.jar</path>
<transform>artifacts/{{distributionName}}.jar</transform>
</artifact>
</artifacts>
</kfk-ctx-exec>
<kfk-ctx>
<name>kfk-ctx</name>
<type>NATIVE_IMAGE</type>
Expand Down

0 comments on commit f0e95f1

Please sign in to comment.