Class GradleBuildProjectContributor
java.lang.Object
io.spring.initializr.generator.spring.build.gradle.GradleBuildProjectContributor
- All Implemented Interfaces:
BuildWriter,ProjectContributor,org.springframework.core.Ordered
public class GradleBuildProjectContributor
extends Object
implements BuildWriter, ProjectContributor
ProjectContributor for the project's main build file.- Author:
- Andy Wilkinson, Jean-Baptiste Nizet
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(Path projectRoot) Contribute additional resources to the project in the specified root directory.voidwriteBuild(Writer out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.spring.initializr.generator.project.contributor.ProjectContributor
getOrder
-
Method Details
-
contribute
Description copied from interface:ProjectContributorContribute additional resources to the project in the specified root directory.- Specified by:
contributein interfaceProjectContributor- Parameters:
projectRoot- the root directory of the project- Throws:
IOException- if contributing a resource failed
-
writeBuild
Description copied from interface:BuildWriter- Specified by:
writeBuildin interfaceBuildWriter- Parameters:
out- the writer to use- Throws:
IOException- if writing the build tooutfailed
-