Skip to content

Commit

Permalink
Add module-info.java file (#25)
Browse files Browse the repository at this point in the history
* Add module-info.java file

* Allow tests to compile

* Add Moditech Plugin

* Move module-info.java to root

* Add Module.info to Tests

* Remove Moditech Plugin

* Add moditech plugin back

* Rearrange module-info.java
  • Loading branch information
Dylan700 authored Dec 18, 2023
1 parent b2217da commit 9f896a0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions meta/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module io.javalin.rendering {
requires io.javalin;
requires transitive kotlin.stdlib;

requires static thymeleaf;
requires static com.github.mustachejava;
requires static freemarker;
requires static gg.jte;
requires static gg.jte.runtime;
requires static io.pebbletemplates;

exports io.javalin.rendering.template;
exports io.javalin.rendering.markdown;
}
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./meta/module-info.java</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 9f896a0

Please sign in to comment.