Skip to content

Commit

Permalink
Revert "auto add maven plugin"
Browse files Browse the repository at this point in the history
This reverts commit e39a548.
  • Loading branch information
SentryMan committed Dec 19, 2024
1 parent ded8121 commit 401f193
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 100 deletions.
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,5 @@
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-AbuildPlugin=false</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</project>

2 changes: 1 addition & 1 deletion querybean-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<artifactId>querybean-generator</artifactId>

<properties>
<avaje.prisms.version>1.37</avaje.prisms.version>
<avaje.prisms.version>1.36</avaje.prisms.version>
</properties>

<dependencies>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@
import static io.ebean.querybean.generator.APContext.logError;
import static io.ebean.querybean.generator.APContext.logNote;
import static io.ebean.querybean.generator.APContext.typeElement;
import static java.util.stream.Collectors.joining;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import java.util.Arrays;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Stream;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedOptions;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
Expand All @@ -30,7 +24,6 @@
@GenerateUtils
@GenerateAPContext
@GenerateModuleInfoReader
@SupportedOptions("buildPlugin")
@SupportedAnnotationTypes({
ConverterPrism.PRISM_TYPE,
EbeanComponentPrism.PRISM_TYPE,
Expand All @@ -46,26 +39,6 @@ public class Processor extends AbstractProcessor implements Constants {
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
ProcessingContext.init(processingEnv);
try {

// write a note in target so that other apts can know spi is running
var file = APContext.getBuildResource("avaje-processors.txt");
var addition = new StringBuilder();
//if file exists, dedup and append current processor
if (file.toFile().exists()) {
var result =
Stream.concat(Files.lines(file), Stream.of("ebean-querybean-generator"))
.distinct()
.collect(joining("\n"));
addition.append(result);
} else {
addition.append("ebean-querybean-generator");
}
Files.writeString(file, addition.toString(), StandardOpenOption.CREATE, StandardOpenOption.WRITE);
PomPluginWriter.addPlugin2Pom();
} catch (IOException e) {
// not an issue worth failing over
}
}

@Override
Expand Down

0 comments on commit 401f193

Please sign in to comment.