Skip to content

Commit 31cefaf

Browse files
authored
Apply flatten-maven-plugin to assertj-core and assertj-guava (#3311)
1 parent 435d183 commit 31cefaf

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

assertj-bom/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<plugin>
3636
<groupId>org.codehaus.mojo</groupId>
3737
<artifactId>flatten-maven-plugin</artifactId>
38-
<version>1.5.0</version>
39-
<inherited>false</inherited>
4038
<executions>
4139
<execution>
4240
<id>flatten</id>

assertj-core/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,32 @@
458458
]]></bottom>
459459
</configuration>
460460
</plugin>
461+
<plugin>
462+
<groupId>org.codehaus.mojo</groupId>
463+
<artifactId>flatten-maven-plugin</artifactId>
464+
<executions>
465+
<execution>
466+
<id>flatten</id>
467+
<phase>process-resources</phase>
468+
<goals>
469+
<goal>flatten</goal>
470+
</goals>
471+
<configuration>
472+
<flattenMode>ossrh</flattenMode>
473+
<pomElements>
474+
<build>remove</build>
475+
</pomElements>
476+
</configuration>
477+
</execution>
478+
<execution>
479+
<id>flatten-clean</id>
480+
<phase>clean</phase>
481+
<goals>
482+
<goal>clean</goal>
483+
</goals>
484+
</execution>
485+
</executions>
486+
</plugin>
461487
<plugin>
462488
<groupId>org.pitest</groupId>
463489
<artifactId>pitest-maven</artifactId>

assertj-guava/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,32 @@
202202
]]></bottom>
203203
</configuration>
204204
</plugin>
205+
<plugin>
206+
<groupId>org.codehaus.mojo</groupId>
207+
<artifactId>flatten-maven-plugin</artifactId>
208+
<executions>
209+
<execution>
210+
<id>flatten</id>
211+
<phase>process-resources</phase>
212+
<goals>
213+
<goal>flatten</goal>
214+
</goals>
215+
<configuration>
216+
<flattenMode>ossrh</flattenMode>
217+
<pomElements>
218+
<build>remove</build>
219+
</pomElements>
220+
</configuration>
221+
</execution>
222+
<execution>
223+
<id>flatten-clean</id>
224+
<phase>clean</phase>
225+
<goals>
226+
<goal>clean</goal>
227+
</goals>
228+
</execution>
229+
</executions>
230+
</plugin>
205231
<plugin>
206232
<groupId>org.sonatype.plugins</groupId>
207233
<artifactId>nexus-staging-maven-plugin</artifactId>

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178
<goals>deploy</goals>
179179
</configuration>
180180
</plugin>
181+
<plugin>
182+
<groupId>org.codehaus.mojo</groupId>
183+
<artifactId>flatten-maven-plugin</artifactId>
184+
<version>1.5.0</version>
185+
</plugin>
181186
<plugin>
182187
<groupId>org.sonarsource.scanner.maven</groupId>
183188
<artifactId>sonar-maven-plugin</artifactId>

0 commit comments

Comments
 (0)