mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-30 12:48:01 +08:00
Fix sample code on how to add plugin conditionally
See gh-1068
This commit is contained in:
parent
09f77cb1a0
commit
7467939745
@ -86,7 +86,7 @@ to do something and makes the declaration more idiomatic. Consider the following
|
||||
@ConditionalOnBuildSystem(GradleBuildSystem.ID)
|
||||
@ConditionalOnPackaging(WarPackaging.ID)
|
||||
public BuildCustomizer<GradleBuild> warPluginContributor() {
|
||||
return (build) -> build.addPlugin("war");
|
||||
return (build) -> build.plugins().add("war");
|
||||
}
|
||||
----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user