Skip to content

Commit

Permalink
#112 Add automatic module name to all JARs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dweiss committed Dec 3, 2021
1 parent 037e590 commit d3a11ae
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 17 deletions.
6 changes: 5 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ Morfologik, Change Log
For an up-to-date CHANGES file see
https://github.com/morfologik/morfologik-stemming/blob/master/CHANGES

======================= morfologik-stemming 2.1.8-SNAPSHOT =======================
======================= morfologik-stemming 2.1.8 =======================

Other Changes

* GH-112: Add automatic module name to all JARs.

======================= morfologik-stemming 2.1.7 =======================

Expand Down
3 changes: 2 additions & 1 deletion morfologik-fsa-builders/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.fsa_builders</project.moduleId>
</properties>

<dependencies>
Expand Down
3 changes: 2 additions & 1 deletion morfologik-fsa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.fsa</project.moduleId>
</properties>

<build>
Expand Down
3 changes: 2 additions & 1 deletion morfologik-polish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.polish</project.moduleId>
</properties>

<dependencies>
Expand Down
3 changes: 2 additions & 1 deletion morfologik-speller/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.speller</project.moduleId>
</properties>

<dependencies>
Expand Down
3 changes: 2 additions & 1 deletion morfologik-stemming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.stemming</project.moduleId>
</properties>

<dependencies>
Expand Down
3 changes: 2 additions & 1 deletion morfologik-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -20,6 +20,7 @@

<properties>
<forbiddenapis.signaturefile>../etc/forbidden-apis/signatures.txt</forbiddenapis.signaturefile>
<project.moduleId>org.carrot2.morfologik.tools</project.moduleId>
</properties>

<dependencies>
Expand Down
44 changes: 34 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.carrot2</groupId>
<artifactId>morfologik-parent</artifactId>
<version>2.1.8-SNAPSHOT</version>
<version>2.1.8</version>
<packaging>pom</packaging>

<name>Morfologik (parent POM)</name>
Expand Down Expand Up @@ -54,8 +54,10 @@
<version.junit>4.12</version.junit>
<version.randomizedtesting>2.5.2</version.randomizedtesting>

<version.maven-compiler-plugin>3.8.1</version.maven-compiler-plugin>
<version.maven-enforcer-plugin>1.4.1</version.maven-enforcer-plugin>
<version.maven-clean-plugin>2.6.1</version.maven-clean-plugin>
<version.maven-jar-plugin>3.2.0</version.maven-jar-plugin>
</properties>

<modules>
Expand Down Expand Up @@ -139,7 +141,20 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<version>${version.maven-jar-plugin}</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifestEntries>
<Project-GroupId>${project.groupId}</Project-GroupId>
<Project-ArtifactId>${project.artifactId}</Project-ArtifactId>
<Project-Version>${project.version}</Project-Version>
<Project-Name>${project.name}</Project-Name>

<Automatic-Module-Name>${project.moduleId}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

<plugin>
Expand All @@ -163,7 +178,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>

<plugin>
Expand All @@ -175,7 +194,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.3.0</version>
<version>5.1.2</version>
<extensions>true</extensions>
</plugin>

Expand All @@ -194,6 +213,11 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down Expand Up @@ -656,14 +680,14 @@

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus Releases</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus Releases</name>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit d3a11ae

Please sign in to comment.