Skip to content

Commit

Permalink
register as annotation processor
Browse files Browse the repository at this point in the history
  • Loading branch information
mtf90 committed Dec 23, 2023
1 parent e38d867 commit 504ade1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ limitations under the License.
<compile-testing.version>0.21.0</compile-testing.version>
<extra-enforcer-rules.version>1.7.0</extra-enforcer-rules.version>
<javapoet.version>1.13.0</javapoet.version>
<metainf-services.version>1.8</metainf-services.version>
<testng.version>7.5.1</testng.version>
</properties>

Expand All @@ -126,6 +127,13 @@ limitations under the License.
<version>${brics.version}</version>
</dependency>

<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
<version>${metainf-services.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.google.testing.compile</groupId>
<artifactId>compile-testing</artifactId>
Expand Down Expand Up @@ -166,6 +174,14 @@ limitations under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<proc>none</proc>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.StringJoiner;
import java.util.stream.Collectors;

import javax.annotation.processing.Processor;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
Expand Down Expand Up @@ -49,7 +50,9 @@
import de.learnlib.tooling.annotation.builder.GenerateBuilder;
import de.learnlib.tooling.annotation.builder.Option;
import de.learnlib.tooling.processor.AbstractLearnLibProcessor;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Processor.class)
public class BuilderProcessor extends AbstractLearnLibProcessor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.stream.Collectors;

import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.Processor;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
Expand Down Expand Up @@ -62,7 +63,9 @@
import dk.brics.automaton.Automaton;
import dk.brics.automaton.RegExp;
import dk.brics.automaton.State;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Processor.class)
public class EDSLProcessor extends AbstractLearnLibProcessor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.StringJoiner;
import java.util.function.Function;

import javax.annotation.processing.Processor;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue;
Expand Down Expand Up @@ -60,7 +61,9 @@
import de.learnlib.tooling.annotation.refinement.Interface;
import de.learnlib.tooling.annotation.refinement.Map;
import de.learnlib.tooling.processor.AbstractLearnLibProcessor;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Processor.class)
public class RefinementProcessor extends AbstractLearnLibProcessor {

@Override
Expand Down

0 comments on commit 504ade1

Please sign in to comment.