Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
public class InitBuild extends DefaultTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
InitBuild() |
Modifier and Type | Method | Description |
---|---|---|
List<String> |
getAvailableBuildTypes() |
|
List<String> |
getAvailableDSLs() |
Available build script DSLs to be used.
|
List<String> |
getAvailableTestFrameworks() |
Available test frameworks.
|
String |
getDsl() |
The desired DSL of build scripts to create, defaults to 'groovy'.
|
String |
getPackageName() |
The name of the package to use for generated source.
|
org.gradle.buildinit.plugins.internal.ProjectLayoutSetupRegistry |
getProjectLayoutRegistry() |
|
String |
getProjectName() |
The name of the generated project, defaults to the name of the directory the project is generated in.
|
Property<Boolean> |
getSplitProject() |
Should the build be split into multiple subprojects?
This property can be set via command-line option '--split-project'.
|
String |
getTestFramework() |
The test framework to be used in the generated project.
|
String |
getType() |
The desired type of project to generate, defaults to 'pom' if a 'pom.xml' is found in the project root and if no 'pom.xml' is found, it defaults to 'basic'.
|
void |
setDsl(String dsl) |
Set the build script DSL to be used.
|
void |
setPackageName(String packageName) |
Set the package name.
|
void |
setProjectName(String projectName) |
Set the project name.
|
void |
setTestFramework(String testFramework) |
Set the test framework to be used.
|
void |
setType(String type) |
|
void |
setupProjectLayout() |
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
@Input public String getType()
@Input @Optional public Property<Boolean> getSplitProject()
@Optional @Input public String getDsl()
@Input public String getProjectName()
@Input public String getPackageName()
@Nullable @Optional @Input public String getTestFramework()
public org.gradle.buildinit.plugins.internal.ProjectLayoutSetupRegistry getProjectLayoutRegistry()
public void setupProjectLayout()
public void setType(String type)
public void setDsl(String dsl)
public List<String> getAvailableDSLs()
public void setTestFramework(@Nullable String testFramework)
public List<String> getAvailableTestFrameworks()
public void setProjectName(String projectName)
public void setPackageName(String packageName)