yomorun / hashids-java

Hashids algorithm v1.0.0 implementation in Java
http://hashids.org
MIT License
1.02k stars 156 forks source link

Please add Automatic-Module-Name #73

Closed dnclain closed 3 years ago

dnclain commented 3 years ago

Hi,

Hashids can be use in modularized project with the unstable jar name.

Can you add the following into the pom.xml file :

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Automatic-Module-Name>org.hashids</Automatic-Module-Name>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>       
        </plugins>
    </build>

So that it will be exported as a constant 'org.hashids' module name ?

Thanks a lot.

0x3333 commented 3 years ago

Fixed.