Skip to content

Commit 0979bbd

Browse files
committed
Only deploy shaded cli module to Maven repository
1 parent 1ccf8b4 commit 0979bbd

File tree

4 files changed

+64
-43
lines changed

4 files changed

+64
-43
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Output of Maven
99
target
1010
.flattened-pom.xml
11+
dependency-reduced-pom.xml
1112

1213
# Generated profile from Project-Env
1314
.project-env

code/cli/pom.xml

+54
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,60 @@
139139
</dependency>
140140
</dependencies>
141141

142+
<build>
143+
<plugins>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-deploy-plugin</artifactId>
147+
<configuration>
148+
<skip>false</skip>
149+
</configuration>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-shade-plugin</artifactId>
154+
<executions>
155+
<execution>
156+
<phase>package</phase>
157+
<goals>
158+
<goal>shade</goal>
159+
</goals>
160+
<configuration>
161+
<artifactSet>
162+
<includes>
163+
<include>io.projectenv*</include>
164+
</includes>
165+
</artifactSet>
166+
<transformers>
167+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
168+
</transformers>
169+
</configuration>
170+
</execution>
171+
</executions>
172+
</plugin>
173+
<plugin>
174+
<groupId>org.codehaus.mojo</groupId>
175+
<artifactId>flatten-maven-plugin</artifactId>
176+
<executions>
177+
<execution>
178+
<id>flatten</id>
179+
<phase>package</phase>
180+
<goals>
181+
<goal>flatten</goal>
182+
</goals>
183+
</execution>
184+
<execution>
185+
<id>flatten.clean</id>
186+
<phase>clean</phase>
187+
<goals>
188+
<goal>clean</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
</plugins>
194+
</build>
195+
142196
<profiles>
143197
<profile>
144198
<id>native-image</id>

code/pom.xml

-13
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@
2020

2121
<build>
2222
<plugins>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-source-plugin</artifactId>
26-
<executions>
27-
<execution>
28-
<id>attach-sources</id>
29-
<phase>verify</phase>
30-
<goals>
31-
<goal>jar-no-fork</goal>
32-
</goals>
33-
</execution>
34-
</executions>
35-
</plugin>
3623
<plugin>
3724
<groupId>org.apache.maven.plugins</groupId>
3825
<artifactId>maven-failsafe-plugin</artifactId>

pom.xml

+9-30
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<toml4j.version>0.7.3</toml4j.version>
3636
<picocli.version>4.7.6</picocli.version>
3737
<reflections.version>0.10.2</reflections.version>
38-
<log4j.version>2.24.1</log4j.version>
3938
<mockito.version>5.14.1</mockito.version>
4039
<archunit-junit5.version>1.3.0</archunit-junit5.version>
4140
<semver4j.version>5.4.0</semver4j.version>
@@ -59,6 +58,7 @@
5958
<maven-failsafe-plugin.version>3.5.0</maven-failsafe-plugin.version>
6059
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
6160
<native-maven-plugin.version>0.10.3</native-maven-plugin.version>
61+
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
6262
</properties>
6363

6464
<modules>
@@ -82,13 +82,6 @@
8282
<type>pom</type>
8383
<scope>import</scope>
8484
</dependency>
85-
<dependency>
86-
<groupId>org.apache.logging.log4j</groupId>
87-
<artifactId>log4j-bom</artifactId>
88-
<version>${log4j.version}</version>
89-
<type>pom</type>
90-
<scope>import</scope>
91-
</dependency>
9285
<dependency>
9386
<groupId>commons-io</groupId>
9487
<artifactId>commons-io</artifactId>
@@ -188,28 +181,6 @@
188181
</dependencyManagement>
189182

190183
<build>
191-
<plugins>
192-
<plugin>
193-
<groupId>org.codehaus.mojo</groupId>
194-
<artifactId>flatten-maven-plugin</artifactId>
195-
<executions>
196-
<execution>
197-
<id>flatten</id>
198-
<phase>process-resources</phase>
199-
<goals>
200-
<goal>flatten</goal>
201-
</goals>
202-
</execution>
203-
<execution>
204-
<id>flatten.clean</id>
205-
<phase>clean</phase>
206-
<goals>
207-
<goal>clean</goal>
208-
</goals>
209-
</execution>
210-
</executions>
211-
</plugin>
212-
</plugins>
213184
<pluginManagement>
214185
<plugins>
215186
<plugin>
@@ -231,6 +202,9 @@
231202
<groupId>org.apache.maven.plugins</groupId>
232203
<artifactId>maven-deploy-plugin</artifactId>
233204
<version>${maven-deploy-plugin.version}</version>
205+
<configuration>
206+
<skip>true</skip>
207+
</configuration>
234208
</plugin>
235209
<plugin>
236210
<groupId>org.jacoco</groupId>
@@ -277,6 +251,11 @@
277251
<artifactId>maven-assembly-plugin</artifactId>
278252
<version>${maven-assembly-plugin.version}</version>
279253
</plugin>
254+
<plugin>
255+
<groupId>org.apache.maven.plugins</groupId>
256+
<artifactId>maven-shade-plugin</artifactId>
257+
<version>${maven-shade-plugin.version}</version>
258+
</plugin>
280259
</plugins>
281260
</pluginManagement>
282261
</build>

0 commit comments

Comments
 (0)