Interface BuildSystem
- All Known Implementing Classes:
GradleBuildSystem
,MavenBuildSystem
public interface BuildSystem
A build system that can be used by a generated project.
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
dialect()
The dialect of the build system, ornull
if the build system does not support multiple dialects.static BuildSystem
static BuildSystem
forIdAndDialect
(String id, String dialect) default SourceStructure
getMainSource
(Path projectRoot, Language language) Returns aSourceStructure
for main sources.default SourceStructure
getTestSource
(Path projectRoot, Language language) Returns aSourceStructure
for test sources.id()
The id of the build system.
-
Method Details
-
id
String id()The id of the build system.- Returns:
- the id
-
dialect
The dialect of the build system, ornull
if the build system does not support multiple dialects.- Returns:
- the dialect or
null
-
getMainSource
Returns aSourceStructure
for main sources.- Parameters:
projectRoot
- the root of the project structurelanguage
- the language of the project- Returns:
- a
SourceStructure
for main assets
-
getTestSource
Returns aSourceStructure
for test sources.- Parameters:
projectRoot
- the root of the project structurelanguage
- the language of the project- Returns:
- a
SourceStructure
for test assets
-
forId
-
forIdAndDialect
-