Package org.gradle.docs.samples.internal
Class SampleInternal
java.lang.Object
org.gradle.docs.samples.internal.SampleInternal
- All Implemented Interfaces:
org.gradle.api.Named,Sample,SampleSummary
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommon(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Configure common content.org.gradle.api.tasks.TaskProvider<org.gradle.api.Task>org.gradle.api.tasks.TaskProvider<org.gradle.api.Task>abstract org.gradle.api.file.DirectoryPropertygetName()voidgroovy(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Configure Groovy content.voidkotlin(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Configure Kotlin content.voidtests(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Configure testing content.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.docs.samples.Sample
getCommonContent, getGroovyContent, getKotlinContent, getReadmeFile, getSampleDirectory, getTestsContentMethods inherited from interface org.gradle.docs.samples.SampleSummary
getCategory, getDescription, getDisplayName, getDsls, getPromoted, getSampleDocName
-
Constructor Details
-
SampleInternal
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
common
public void common(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Description copied from interface:SampleConfigure common content. -
groovy
public void groovy(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Description copied from interface:SampleConfigure Groovy content. -
kotlin
public void kotlin(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Description copied from interface:SampleConfigure Kotlin content. -
tests
public void tests(org.gradle.api.Action<? super org.gradle.api.file.ConfigurableFileCollection> action) Description copied from interface:SampleConfigure testing content. -
getAssembleTask
public org.gradle.api.tasks.TaskProvider<org.gradle.api.Task> getAssembleTask()- Returns:
- Lifecycle task for assembling this sample.
-
getCheckTask
public org.gradle.api.tasks.TaskProvider<org.gradle.api.Task> getCheckTask()- Returns:
- Lifecycle task for checking this sample.
-
getInstallDirectory
public abstract org.gradle.api.file.DirectoryProperty getInstallDirectory()- Returns:
- Root installation directory for each DSL.
-