Skip to content

Commit

Permalink
Set an automatic module (JPMS) name
Browse files Browse the repository at this point in the history
This allows JPMS modules to depend on this component.
  • Loading branch information
hgschmie committed Aug 19, 2023
1 parent a255a67 commit cc30ed3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<basepom.oss.skip-scala-doc>true</basepom.oss.skip-scala-doc>
<basepom.check.skip-javadoc>false</basepom.check.skip-javadoc>
<basepom.check.fail-javadoc>false</basepom.check.fail-javadoc>
<moduleName>com.opentable.components.otj.pg.embedded</moduleName>
</properties>

<licenses>
Expand Down Expand Up @@ -127,4 +128,36 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<!-- add module name to main artifact -->
<configuration>
<archive>
<manifestEntries combine.children="append">
<Automatic-Module-Name>${moduleName}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
<execution>
<id>basepom.default</id>
<!-- add module name with "test" appended to tests artifact -->
<configuration>
<archive>
<manifestEntries combine.children="append">
<Automatic-Module-Name>${moduleName}.tests</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

2 comments on commit cc30ed3

@opentable-devops
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Architecture Team / Java TC Platform / otj-pg-embedded / PR Build Build ???.184/merge.155 is now running

@opentable-devops
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Architecture Team / Java TC Platform / otj-pg-embedded / PR Build Build 1.0.2-SNAPSHOT.184/merge.155 outcome was SUCCESS
Summary: Tests passed: 13, ignored: 2 Build time: 00:01:27

Please sign in to comment.