Skip to content

Commit ffce241

Browse files
authored
Merge pull request #55 from avaje/SentryMan-patch-1
bump spi plugin version
2 parents 043cd16 + 5eb2e6d commit ffce241

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

avaje-spi-core/src/main/java/io/avaje/spi/internal/PomPluginWriter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class PomPluginWriter {
1313
+ " <plugin>\n"
1414
+ " <groupId>io.avaje</groupId>\n"
1515
+ " <artifactId>avaje-provides-maven-plugin</artifactId>\n"
16-
+ " <version>%s</version>\n"
16+
+ " <version>2.2</version>\n"
1717
+ " <executions>\n"
1818
+ " <execution>\n"
1919
+ " <?m2e execute onIncremental?>\n"
@@ -48,9 +48,7 @@ static void addPlugin2Pom() throws IOException {
4848
var pluginsIndex = pomContent.indexOf("</plugins>");
4949
var builder = new StringBuilder(pomContent);
5050
if (pluginsIndex != -1) {
51-
builder.insert(
52-
pluginsIndex,
53-
String.format(PLUGIN, "2.1"));
51+
builder.insert(pluginsIndex, PLUGIN);
5452

5553
Files.writeString(
5654
pomPath, builder.toString(), StandardOpenOption.CREATE, StandardOpenOption.WRITE);

0 commit comments

Comments
 (0)