Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction of consumer vs. build time POMs #138

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
.flattened-pom.xml
buildNumber.properties
.mvn/timing.properties

Expand Down
35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<lombok-version>1.18.20</lombok-version>
<maven-plugin-annotations-version>3.5</maven-plugin-annotations-version>
<maven-plugin-depdendencies-version>3.3.9</maven-plugin-depdendencies-version>
<maven-plugin-flatten-version>1.2.7</maven-plugin-flatten-version>
<maven-plugin-plugin-version>3.6.4</maven-plugin-plugin-version>
<maven-plugin-testing-harness-version>3.3.0</maven-plugin-testing-harness-version>
<rgxgen-version>1.3</rgxgen-version>
Expand Down Expand Up @@ -362,6 +363,11 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin-version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${maven-plugin-flatten-version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -470,6 +476,35 @@
</execution>
</executions>
</plugin>
<plugin>
<!--
This plugin strips down original pom.xml to a required minimum and stores it within the final artifact in favor of the original one.
Original pom.xml will be kept untouched. For convenience you'll find the flattened version after a Maven build next to the original pom.xml.
This results in a more streamlined POM which is much easier to grasp as a consuming developer of the SDK.
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<!-- see https://central.sonatype.org/publish/requirements -->
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>clean-flatten</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down