Skip to content

Commit

Permalink
chore: generate automatic module names (#407)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert authored Aug 24, 2023
1 parent ed25450 commit f18df0f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<junit.jupiter.version>5.10.0</junit.jupiter.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<module-name>${groupId}.${artifactId}</module-name>
</properties>

<dependencies>
Expand Down Expand Up @@ -278,6 +279,20 @@
</executions>
</plugin>

<!-- automatically derive a module name from the groupId and artifactId -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>${module-name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

<!-- skips deployment of submodule artifact if already in repo -->
<plugin>
<groupId>org.honton.chas</groupId>
Expand Down
5 changes: 5 additions & 0 deletions providers/env-var/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<artifactId>env-var</artifactId>
<version>0.0.4</version> <!--x-release-please-version -->

<properties>
<!-- override module name defined in parent ("-" is not allowed) -->
<module-name>${groupId}.envvar</module-name>
</properties>

<name>env-var</name>
<description>Environment Variables provider for Java</description>

Expand Down
5 changes: 5 additions & 0 deletions providers/go-feature-flag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<description>GO Feature Flag provider for Java</description>
<url>https://gofeatureflag.org</url>

<properties>
<!-- override module name defined in parent ("-" is not allowed) -->
<module-name>${groupId}.gofeatureflag</module-name>
</properties>

<developers>
<developer>
<id>thomaspoignant</id>
Expand Down
5 changes: 5 additions & 0 deletions providers/jsonlogic-eval-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<description>Allows for evaluating rules on the client without synchronous calls to a backend</description>
<url>https://openfeature.dev</url>

<properties>
<!-- override module name defined in parent ("-" is not allowed) -->
<module-name>${groupId}.jsonlogic</module-name>
</properties>

<developers>
<developer>
<id>justinabrahms</id>
Expand Down

0 comments on commit f18df0f

Please sign in to comment.