Skip to content

Commit

Permalink
fix: revert plugin version in pom
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Oct 24, 2024
1 parent 90e1d38 commit f06eedc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/bee/api/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,18 @@ public String toMavenDefinition() {
// compiler-plugin
XML plugin = plugins.child("plugin");
plugin.child("artifactId").text("maven-compiler-plugin");
plugin.child("version").text("3.13.0");
XML conf = plugin.child("configuration");
conf.child("encoding").text(getEncoding().displayName());
conf.child("release").text(Inputs.normalize(getJavaSourceVersion()));
XML args = conf.child("compilerArgs");
if (getClasses().file("META-INF/services/javax.annotation.processing.Processor").isPresent()) args.child("arg").text("-proc:none");

// surefire-plugin
plugin = plugins.child("plugin");
plugin.child("artifactId").text("maven-surefire-plugin");
plugin.child("version").text("3.5.1");

// write as pom
return pom.toString();
}
Expand Down

0 comments on commit f06eedc

Please sign in to comment.