Skip to content

Commit

Permalink
Fix afterEvaluate Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Jun 8, 2022
1 parent f2cc3e7 commit 94a5b2b
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -45,11 +45,9 @@ public void apply(Project project) {
});
});

project.afterEvaluate(p -> {
validateMavenPom.configure(v -> {
v.dependsOn(generateMavenPom);
v.getPomFile().set(generateMavenPom.getDestination());
});
validateMavenPom.configure(v -> {
v.dependsOn(generateMavenPom);
v.getPomFile().set(project.getLayout().file(project.provider(generateMavenPom::getDestination)));
});
});
}
Expand Down

0 comments on commit 94a5b2b

Please sign in to comment.