Skip to content

Commit

Permalink
Flatten poms properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Dec 10, 2023
1 parent 9b4a6b5 commit dfc9dbd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
source_repo_path: smecalculus/bezmen
upstream_branch: main
github_token: ${{ steps.orgbot.outputs.token }}
git_remote_pull_params: --allow-unrelated-histories --strategy=recursive -X ours
git_remote_pull_params: --allow-unrelated-histories --strategy=recursive -X theirs
4 changes: 4 additions & 0 deletions libs/abstraction-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions libs/messaging-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
Expand Down
28 changes: 0 additions & 28 deletions libs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -234,30 +230,6 @@

<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<groupId>smecalculus.bezmen</groupId>
<artifactId>bezmen</artifactId>
<version>latest</version>
<packaging>pom</packaging>
<version>latest</version>

<modules>
<module>libs</module>
Expand Down Expand Up @@ -103,6 +103,26 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<flattenMode>oss</flattenMode>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down

0 comments on commit dfc9dbd

Please sign in to comment.