From 2ef524638403fd1bd0eb6cd42d6cf158eb5d78a3 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 30 Sep 2024 15:01:21 +0200 Subject: [PATCH] Drop AllArgsConstructor from RawPom$Build (#4535) As suggested on - https://github.com/openrewrite/rewrite/pull/4530#issuecomment-2382971751 To fix the downstream issues on rewrite-jackson - https://github.com/openrewrite/rewrite/pull/4530#issuecomment-2382685644 --- .../main/java/org/openrewrite/maven/internal/RawPom.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawPom.java b/rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawPom.java index ddd8a2c5730..4ae0fc5b3da 100755 --- a/rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawPom.java +++ b/rewrite-maven/src/main/java/org/openrewrite/maven/internal/RawPom.java @@ -219,10 +219,8 @@ public Profiles(@JacksonXmlProperty(localName = "profile") List profile @FieldDefaults(level = AccessLevel.PRIVATE) @Data - @AllArgsConstructor public static class Build { - @NonFinal @Nullable @JacksonXmlElementWrapper(localName = "plugins") @JacksonXmlProperty(localName = "plugin") @@ -231,16 +229,12 @@ public static class Build { @Nullable @JacksonXmlProperty(localName = "pluginManagement") PluginManagement pluginManagement; - - public Build() { - plugins = null; - pluginManagement = null; - } } @FieldDefaults(level = AccessLevel.PRIVATE) @Data public static class PluginManagement { + @Nullable @JacksonXmlElementWrapper(localName = "plugins") @JacksonXmlProperty(localName = "plugin")