Skip to content

Commit

Permalink
Add automatic module names (fixes #245)
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo committed Feb 2, 2020
1 parent 1e70513 commit 90ddf0d
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 11 deletions.
7 changes: 5 additions & 2 deletions modules/authenticated-socks-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
<name>Simple Java Mail - Authenticated SOCKS module</name>
<description>Simple API, Complex Emails. Now with SOCKS5 support</description>

<dependencies>
<properties>
<automaticModuleName>org.simplejavamail.authenticatedsocks</automaticModuleName>
</properties>

<dependencies>
<!-- core dependencies -->
<dependency>
<groupId>org.simplejavamail</groupId>
<artifactId>core-module</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/batch-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - Batch module</name>
<description>Simple API, Complex Emails. High performance.</description>

<properties>
<automaticModuleName>org.simplejavamail.batch</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand All @@ -33,4 +37,4 @@
<version>1.1.0</version>
</dependency>
</dependencies>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/cli-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - CLI module</name>
<description>Simple API, Complex Emails. Now with CLI support</description>

<properties>
<automaticModuleName>org.simplejavamail.cli</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand Down Expand Up @@ -145,4 +149,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/core-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - Core module</name>
<description>Simple API, Complex Emails. Core module support</description>

<properties>
<automaticModuleName>org.simplejavamail.core</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand Down Expand Up @@ -55,4 +59,4 @@
<scope>provided</scope><!-- makes library mandatory if we should support CLI (even optionally) -->
</dependency>
</dependencies>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/core-test-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - Core Test module</name>
<description>Simple API, Complex Emails. Core module test support</description>

<properties>
<automaticModuleName>org.simplejavamail.test</automaticModuleName>
</properties>

<dependencies>
<dependency>
<groupId>org.simplejavamail</groupId>
Expand All @@ -25,4 +29,4 @@
<scope>compile</scope>
</dependency>
</dependencies>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/dkim-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - DKIM module</name>
<description>Simple API, Complex Emails. Now with DKIM support</description>

<properties>
<automaticModuleName>org.simplejavamail.dkim</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand All @@ -33,4 +37,4 @@
<version>1.2.0</version>
</dependency>
</dependencies>
</project>
</project>
6 changes: 5 additions & 1 deletion modules/outlook-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - Outlook module</name>
<description>Simple API, Complex Emails. Now with Outlook support</description>

<properties>
<automaticModuleName>org.simplejavamail.outlook</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand Down Expand Up @@ -50,4 +54,4 @@
</dependency>
</dependencies>
</dependencyManagement>
</project>
</project>
3 changes: 2 additions & 1 deletion modules/simple-java-mail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<description>Simple API, Complex Emails. A light weight wrapper for the JavaMail SMTP API</description>

<properties>
<automaticModuleName>org.simplejavamail</automaticModuleName>
<spring.version>[4.3.18.RELEASE,)</spring.version>
</properties>

Expand Down Expand Up @@ -149,4 +150,4 @@
</profile>
</profiles>

</project>
</project>
6 changes: 5 additions & 1 deletion modules/smime-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<name>Simple Java Mail - S/MIME module</name>
<description>Simple API, Complex Emails. Now with S/MIME support</description>

<properties>
<automaticModuleName>org.simplejavamail.smime</automaticModuleName>
</properties>

<dependencies>

<!-- core dependencies -->
Expand All @@ -39,4 +43,4 @@
</exclusions>
</dependency>
</dependencies>
</project>
</project>
3 changes: 2 additions & 1 deletion modules/spring-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<description>Simple API, Complex Emails. Now with Spring support</description>

<properties>
<automaticModuleName>org.simplejavamail.spring</automaticModuleName>
<spring.version>[4.3.18.RELEASE,)</spring.version>
</properties>

Expand Down Expand Up @@ -58,4 +59,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<properties>
<se.eris.notnull.instrument>false</se.eris.notnull.instrument>
<automaticModuleName>org.simplejavamail.undefined</automaticModuleName> <!-- update in individual modules -->
</properties>

<!-- to skip some steps: -DskipTests -Dspotbugs.skip=true -Dmaven.javadoc.skip=true -Denforcer.skip=true -Djacoco.skip=true -Dlicense.skip=true -->
Expand Down Expand Up @@ -114,6 +115,17 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>${automaticModuleName}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit 90ddf0d

Please sign in to comment.