Skip to content

Commit 8286104

Browse files
authored
Add migration tool artifact to releases (datastax#75)
1 parent 6411124 commit 8286104

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/workflows/ci-release-operator.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ jobs:
5050
5151
- uses: ncipollo/release-action@v1
5252
with:
53+
artifacts: "migration-tool/target/migration-tool-*.jar"
5354
token: ${{ secrets.GITHUB_TOKEN }}
5455
generateReleaseNotes: true

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ target
1414
*~
1515
*.iml
1616

17+
**/dependency-reduced-pom.xml
18+
1719
# Chart dependencies
1820
**/charts/*.tgz
1921
Chart.lock

migration-tool/pom.xml

+39-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
limitations under the License.
1717
1818
-->
19-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2021
<parent>
2122
<artifactId>pulsar-operator-parent</artifactId>
2223
<groupId>com.datastax.oss</groupId>
@@ -36,6 +37,12 @@
3637
<groupId>${project.groupId}</groupId>
3738
<artifactId>pulsar-operator</artifactId>
3839
<version>${project.version}</version>
40+
<exclusions>
41+
<exclusion>
42+
<groupId>org.apache.curator</groupId>
43+
<artifactId>*</artifactId>
44+
</exclusion>
45+
</exclusions>
3946
</dependency>
4047
<dependency>
4148
<groupId>${project.groupId}</groupId>
@@ -77,6 +84,37 @@
7784
</execution>
7885
</executions>
7986
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-shade-plugin</artifactId>
90+
<version>2.3</version>
91+
<executions>
92+
<execution>
93+
<phase>package</phase>
94+
<goals>
95+
<goal>shade</goal>
96+
</goals>
97+
<configuration>
98+
<transformers>
99+
<transformer
100+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
101+
<mainClass>com.datastax.oss.pulsaroperator.migrationtool.Main</mainClass>
102+
</transformer>
103+
</transformers>
104+
<filters>
105+
<filter>
106+
<artifact>*:*</artifact>
107+
<excludes>
108+
<exclude>META-INF/*.SF</exclude>
109+
<exclude>META-INF/*.DSA</exclude>
110+
<exclude>META-INF/*.RSA</exclude>
111+
</excludes>
112+
</filter>
113+
</filters>
114+
</configuration>
115+
</execution>
116+
</executions>
117+
</plugin>
80118
</plugins>
81119
</build>
82120

0 commit comments

Comments
 (0)