Class ComposeProjectContributor

java.lang.Object
io.spring.initializr.generator.spring.container.docker.compose.ComposeProjectContributor
All Implemented Interfaces:
ProjectContributor, org.springframework.core.Ordered

public class ComposeProjectContributor extends Object implements ProjectContributor
A ProjectContributor that creates a 'compose.yaml' file through a ComposeFile.
Author:
Moritz Halbritter, Stephane Nicoll
  • Constructor Details

  • Method Details

    • contribute

      public void contribute(Path projectRoot) throws IOException
      Description copied from interface: ProjectContributor
      Contribute additional resources to the project in the specified root directory.
      Specified by:
      contribute in interface ProjectContributor
      Parameters:
      projectRoot - the root directory of the project
      Throws:
      IOException - if contributing a resource failed