Skip to content

Commit

Permalink
Merge pull request #38 from dmlloyd/desc
Browse files Browse the repository at this point in the history
Ensure that module the descriptor is properly indexed and versioned
  • Loading branch information
dmlloyd authored May 21, 2024
2 parents 606ee8b + f985a56 commit 5b3a02e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,37 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/jar</executable>
<arguments>
<argument>--update</argument>
<argument>--file</argument>
<argument>${project.build.directory}/${project.artifactId}-${project.version}.jar</argument>
<argument>--module-version</argument>
<argument>${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module io.github.dmlloyd.classfile {
exports io.github.dmlloyd.classfile;
exports io.github.dmlloyd.classfile.attribute;
exports io.github.dmlloyd.classfile.components;
exports io.github.dmlloyd.classfile.constantpool;
exports io.github.dmlloyd.classfile.extras;
exports io.github.dmlloyd.classfile.extras.constant;
exports io.github.dmlloyd.classfile.extras.reflect;
exports io.github.dmlloyd.classfile.components;
exports io.github.dmlloyd.classfile.constantpool;
exports io.github.dmlloyd.classfile.instruction;
}

0 comments on commit 5b3a02e

Please sign in to comment.