Skip to content

Split processor into separate module #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions avaje-prisms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,11 @@
<developerConnection>scm:git:[email protected]:avaje/avaje-prisms.git</developerConnection>
<tag>HEAD</tag>
</scm>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.avaje</groupId>
<artifactId>avaje-prism-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
4 changes: 1 addition & 3 deletions avaje-prisms/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module io.avaje.prism {

exports io.avaje.prism;
requires java.compiler;
provides javax.annotation.processing.Processor with io.avaje.prism.internal.PrismGenerator;
exports io.avaje.prism;

}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<modules>
<module>avaje-prisms</module>
<module>prism-core</module>
</modules>

<profiles>
Expand Down
29 changes: 29 additions & 0 deletions prism-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<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.avaje</groupId>
<artifactId>avaje-prisms-parent</artifactId>
<version>1.12-SNAPSHOT</version>
</parent>
<artifactId>avaje-prism-core</artifactId>
<description>generator for avaje prisms</description>
<scm>
<developerConnection>scm:git:[email protected]:avaje/avaje-prisms.git</developerConnection>
<tag>HEAD</tag>
</scm>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
6 changes: 6 additions & 0 deletions prism-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module io.avaje.prism.core {

requires java.compiler;
provides javax.annotation.processing.Processor with io.avaje.prism.internal.PrismGenerator;

}