Skip to content

Commit

Permalink
Fix #160 apt module has corrupt module descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
agentgt committed Sep 4, 2024
1 parent 4e79648 commit f10dce0
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 22 deletions.
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
<pistachio.version>0.1.2</pistachio.version>
<jstachio.version>1.3.6</jstachio.version>
<slf4j.version>2.0.16</slf4j.version>

<!--
This is needed because of moditect generating
the module-info for the annotation processing
jar which angers the javadoc system.
https://bugs.openjdk.org/browse/JDK-8274639
-->
<javadoc.modularity.mismatch>info</javadoc.modularity.mismatch>
</properties>

<scm>
Expand Down Expand Up @@ -564,6 +570,7 @@
<additionalOption>--allow-script-in-comments</additionalOption>
<additionalOption>--snippet-path ${project.basedir}/${doc.resources}${doc.snippets}</additionalOption>
<additionalOption>--add-stylesheet ${parent.root}/doc/jstachio.css</additionalOption>
<additionalOption>--link-modularity-mismatch=${javadoc.modularity.mismatch}</additionalOption>
</additionalOptions>
</configuration>
<executions>
Expand Down Expand Up @@ -1116,5 +1123,6 @@
<module>rainbowgum-systemlogger</module>
<module>rainbowgum-tomcat</module>
<module>spring</module>
<module>rainbowgum-maven-last</module>
</modules>
</project>
7 changes: 6 additions & 1 deletion rainbowgum-apt/src/main/java/module-info.moditect
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/**
* Rainbow Gum annotation processors.
* @provides Processor with config processor.
* @provides javax.annotation.processing.Processor with config processor.
*/
module io.jstach.rainbowgum.apt {
requires jdk.compiler;
requires static io.jstach.rainbowgum.annotation;
requires static io.jstach.prism;
requires static io.jstach.svc;
requires static org.eclipse.jdt.annotation;
requires static io.jstach.jstache;
provides javax.annotation.processing.Processor with io.jstach.rainbowgum.apt.ConfigProcessor;
}
45 changes: 45 additions & 0 deletions rainbowgum-maven-last/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.jstach.rainbowgum</groupId>
<artifactId>rainbowgum-maven-parent</artifactId>
<version>0.8.0-SNAPSHOT</version>
</parent>
<artifactId>rainbowgum-maven-last</artifactId>
<packaging>pom</packaging>
<!--
This POM and artifact is a hack for reliable maven reactor order.
The sonatype deploy plugin needs the last artifact
to be actually deployable.
-->
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-test-jdk</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-test-rabbitmq</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-tomcat</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-etc</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
</project>
20 changes: 0 additions & 20 deletions rainbowgum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,6 @@
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-rabbitmq</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-test-jdk</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rainbowgum-test-rabbitmq</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
<profiles>
<profile>
Expand Down

0 comments on commit f10dce0

Please sign in to comment.