Skip to content

Commit 3b01d4d

Browse files
authored
Merge pull request #108 from glimmerveen/Maven_3.6.0_compatibility
Maven 3.6.0 compatibility
2 parents 649537b + ddf6b89 commit 3b01d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/e_gineering/maven/gitflowhelper/MasterPromoteExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
8080
for (MavenProject project : session.getProjects()) {
8181
List<Plugin> dropPlugins = new ArrayList<>();
8282

83-
for (Plugin plugin : project.getBuildPlugins()) {
83+
for (Plugin plugin : project.getModel().getBuild().getPlugins()) {
8484
// Don't drop our plugin. Read it's config
8585
if (plugin.getKey().equals("com.e-gineering:gitflow-helper-maven-plugin")) {
8686
pluginFound = true;
@@ -189,7 +189,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
189189
// invoked goals for which could be mapped back to plugins in our project build.
190190
// Goals invoked from the commandline which cannot be mapped back to our project, will get warnings, but should still execute.
191191
// If someone is on 'master' and starts executing goals, we need to allow them to do that.
192-
project.getBuildPlugins().removeAll(pluginsToDrop.get(project));
192+
project.getModel().getBuild().getPlugins().removeAll(pluginsToDrop.get(project));
193193
}
194194
}
195195
}

0 commit comments

Comments
 (0)