public class AemExtension
Core of library, facade for implementing tasks, configuration aggregator.
| Modifier and Type | Class and Description |
|---|---|
static class |
AemExtension.Companion |
| Modifier and Type | Field and Description |
|---|---|
static AemExtension.Companion |
Companion |
static java.lang.String |
NAME |
static java.lang.String |
TEMPORARY_DIR |
| Constructor and Description |
|---|
AemExtension(org.gradle.api.Project project)
Core of library, facade for implementing tasks, configuration aggregator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authorInstances(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with all author instances running on current environment.
|
java.io.File |
composePackage(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition)
Build minimal CRX package in-place / only via code.
All details like Vault properties, archive destination directory, file name are customizable.
|
java.util.List<java.io.File> |
dependentPackages(org.gradle.api.Task task)
Get all CRX packages built before running particular task.
|
void |
environment(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.Environment,kotlin.Unit> configurer) |
void |
fileTransfer(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.FileTransferManager,kotlin.Unit> options)
Define settings for file transfer facade which allows to perform basic file operations on remote servers
like uploading and downloading files.
|
void |
fileWatcher(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.FileWatcher,kotlin.Unit> options)
React on file changes under configured directory.
|
FilterFile |
filter(java.io.File file)
Get Vault filter object for specified file.
|
FilterFile |
filter(java.lang.String path)
Get Vault filter object for specified path.
|
java.util.List<com.cognifide.gradle.aem.common.instance.Instance> |
filterInstances(java.lang.String nameMatcher)
Find all instances which names are matching wildcard filter specified via command line parameter 'instance.name'.
|
Instance |
getAnyInstance()
Get or create instance using command line parameter named 'instance' which holds instance name or URL.
If it is not specified, then first instance matching default filtering fill be returned.
|
java.util.List<com.cognifide.gradle.aem.common.instance.Instance> |
getAuthorInstances()
Get all author instances running on current environment.
|
java.lang.String |
getBaseName()
Base name used as default for CRX packages being created by compose or collect task
and also for OSGi bundle JARs.
|
BuildScope |
getBuildScope() |
java.io.File |
getConfigCommonDir()
Directory for storing common files used by plugin e.g:
|
java.io.File |
getConfigDir()
Directory for storing project specific files used by plugin e.g:
|
java.lang.String |
getEnv()
Determines current environment name to be used in e.g package deployment.
|
Environment |
getEnvironment()
Provides API for controlling virtualized AEM environment with HTTPD and dispatcher module.
|
FileTransferManager |
getFileTransfer() |
FilterFile |
getFilter() |
Formats |
getFormats() |
InstanceActionPerformer |
getInstanceActions()
Provides API for performing actions affecting multiple instances at once.
|
InstanceOptions |
getInstanceOptions() |
java.util.List<com.cognifide.gradle.aem.common.instance.Instance> |
getInstances()
All instances matching default filtering.
|
java.util.List<java.lang.String> |
getJavaPackages()
Collection of all java packages from all projects applying bundle plugin.
|
java.lang.String |
getLineSeparator()
Specify characters to be used as line endings when cleaning up checked out JCR content.
|
java.lang.String |
getLineSeparatorString() |
LocalInstanceManager |
getLocalInstanceManager() |
java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> |
getLocalInstances()
Get all local instances.
|
org.gradle.api.logging.Logger |
getLogger() |
AemExtension |
getMain()
Access configuration for local instances or environment from different project (cross-project configuring).
|
NotifierFacade |
getNotifier()
Provides API for displaying interactive notification during running build tasks.
|
boolean |
getOffline()
Allows to disable features that are using running instances.
|
java.io.File |
getPackage()
Get CRX package defined to be built (could not yet exist).
|
PackageOptions |
getPackageOptions() |
java.util.List<java.io.File> |
getPackages()
Get all CRX packages defined to be built.
|
Parallel |
getParallel() |
java.io.File |
getPkg() |
org.gradle.api.Project |
getProject() |
org.gradle.api.Project |
getProjectMain()
Project under which common configuration files are stored.
Usually it is also configures local instances and environment (is applying corresponding plugins).
|
java.lang.String |
getProjectName()
Project name with skipped convention prefixes.
|
java.util.List<java.lang.String> |
getProjectPrefixes()
Project name convention prefixes used to determine default:
|
PropertyParser |
getProps()
Allows to read project property specified in command line and system property as a fallback.
|
java.util.List<com.cognifide.gradle.aem.common.instance.Instance> |
getPublishInstances()
Get all publish instances running on current environment.
|
java.util.List<com.cognifide.gradle.aem.common.instance.RemoteInstance> |
getRemoteInstances()
Get all remote instances.
|
AemTaskFacade |
getTasks()
Provides API for easier creation of tasks (e.g in sequence) in the matter of Gradle task configuration avoidance.
|
java.io.File |
getTemporaryDir()
Predefined temporary directory.
|
<T> T |
http(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.http.HttpClient,? extends T> consumer)
Perform any HTTP requests to external endpoints.
|
<T> T |
httpFile(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.http.HttpFileTransfer,? extends T> consumer)
Download files using HTTP protocol using custom settings.
|
void |
instance(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceOptions,kotlin.Unit> options)
Defines instances to work with.
|
Instance |
instance(java.lang.String urlOrName)
Shorthand method for getting defined instance or creating temporary instance by URL.
|
void |
instances(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with instances matching default filtering.
|
void |
instances(java.lang.String filter,
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with instances which name is matching specified wildcard filter.
|
java.util.List<com.cognifide.gradle.aem.common.instance.Instance> |
instances(java.lang.Iterable<java.lang.String> urlsOrNames)
Shorthand method for getting defined instances or creating temporary instances by URLs.
|
LocalInstanceManager |
localInstance(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstanceManager,kotlin.Unit> options)
Define common settings valid only for instances created at local file system.
|
void |
localInstances(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstance,kotlin.Unit> consumer)
Work in parallel with all local instances.
|
Instance |
namedInstance(java.lang.String desiredName,
java.lang.String defaultName)
Get all instances which names are matching wildcard filter specified via command line parameter 'instance.name'.
By default, this method respects current environment which is used to work only with instances running locally.
|
void |
notifier(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.notifier.NotifierFacade,kotlin.Unit> configurer) |
void |
package(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageOptions,kotlin.Unit> options)
Defines common settings for built packages and deployment related behavior.
|
PackageFile |
package(java.io.File file)
Read CRX package properties of specified ZIP file.
|
void |
pkg(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageOptions,kotlin.Unit> options)
Defines common settings for built packages and deployment related behavior.
|
PackageFile |
pkg(java.io.File file)
Read CRX package properties of specified ZIP file.
|
<T> T |
progress(int total,
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator with percentage while performing some action.
|
<T> T |
progress(long total,
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator with percentage while performing some action.
|
<T> T |
progress(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action) |
void |
progressCountdown(long time)
Show synchronous progress countdown / time to wait after performing asynchronous operation.
|
void |
progressCountdown(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressCountdown,kotlin.Unit> options)
Show synchronous progress countdown / time to wait after performing asynchronous operation.
|
<T> T |
progressIndicator(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator while performing some action.
|
<T> T |
progressLogger(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressLogger,? extends T> action)
Show synchronous progress logger while performing some action.
|
void |
publishInstances(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with all publish instances running on current environment.
|
void |
remoteInstances(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.RemoteInstance,kotlin.Unit> consumer)
Work in parallel with all remote instances.
|
Retry |
retry(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.Retry,kotlin.Unit> configurer)
Factory method for configuration object determining how operation should be retried.
|
Retry |
retry()
Factory method for configuration object determining that operation should not be retried.
|
void |
setLineSeparator(java.lang.String p)
Specify characters to be used as line endings when cleaning up checked out JCR content.
|
<T> T |
sftpFile(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.sftp.SftpFileTransfer,? extends T> consumer)
Transfer files using over SFTP protocol using custom settings.
|
<T> T |
smbFile(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.smb.SmbFileTransfer,? extends T> consumer)
Transfer files using over SMB protocol using custom settings.
|
void |
sync(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,kotlin.Unit> synchronizer)
In parallel, work with services of all instances matching default filtering.
|
<T> T |
sync(Instance instance,
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? extends T> synchronizer)
Work with instance services of specified instance.
|
void |
sync(java.lang.Iterable<? extends com.cognifide.gradle.aem.common.instance.Instance> instances,
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,kotlin.Unit> synchronizer)
In parallel, work with services of all specified instances.
|
void |
syncPackages(kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? super java.io.File,kotlin.Unit> synchronizer)
In parallel, work with built packages and services of instances matching default filtering.
|
void |
syncPackages(java.lang.Iterable<? extends com.cognifide.gradle.aem.common.instance.Instance> instances,
java.lang.Iterable<? extends java.io.File> packages,
kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? super java.io.File,kotlin.Unit> synchronizer)
In parallel, work with built packages and services of specified instances.
|
void |
tasks(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.AemTaskFacade,kotlin.Unit> configurer) |
java.io.File |
temporaryDir(org.gradle.api.Task task)
Determine temporary directory for particular task.
|
java.io.File |
temporaryDir(java.lang.String name)
Determine temporary directory for particular service (any name).
|
java.io.File |
temporaryFile(java.lang.String name)
Determine temporary file for particular service (any name).
|
void |
waitFor(long time)
Wait some time after performing asynchronous operation.
|
@NotNull public static java.lang.String NAME
@NotNull public static java.lang.String TEMPORARY_DIR
public static AemExtension.Companion Companion
public AemExtension(@NotNull
org.gradle.api.Project project)
Core of library, facade for implementing tasks, configuration aggregator.
public org.gradle.api.logging.Logger getLogger()
@NotNull public PropertyParser getProps()
Allows to read project property specified in command line and system property as a fallback.
@NotNull public AemExtension getMain()
Access configuration for local instances or environment from different project (cross-project configuring).
@NotNull public org.gradle.api.Project getProjectMain()
Project under which common configuration files are stored. Usually it is also configures local instances and environment (is applying corresponding plugins).
Convention assumes in case of:
multi-project build - subproject with path ':aem'
single-project build - root project
@NotNull public java.util.List<java.lang.String> getProjectPrefixes()
Project name convention prefixes used to determine default:
bundle install subdirectory
CRX package base name
OSGi bundle JAR base name
in case of multi-project build and assembly packages.
@NotNull public java.lang.String getProjectName()
Project name with skipped convention prefixes.
@NotNull public java.lang.String getBaseName()
Base name used as default for CRX packages being created by compose or collect task and also for OSGi bundle JARs.
public boolean getOffline()
Allows to disable features that are using running instances.
Gradle's offline mode does much more. It will not use any Maven repository so that CI build will fail which is not expected in integration tests.
@NotNull public java.lang.String getEnv()
Determines current environment name to be used in e.g package deployment.
@NotNull public java.lang.String getLineSeparator()
Specify characters to be used as line endings when cleaning up checked out JCR content.
public void setLineSeparator(@NotNull
java.lang.String p)
Specify characters to be used as line endings when cleaning up checked out JCR content.
@NotNull public java.lang.String getLineSeparatorString()
@NotNull public java.io.File getConfigDir()
Directory for storing project specific files used by plugin e.g:
Groovy Scripts to be launched by Groovy Console instance service in tasks defined in project.
@NotNull public java.io.File getConfigCommonDir()
Directory for storing common files used by plugin e.g:
CRX package thumbnail
environment configuration files (HTTPD virtual hosts, Dispatcher)
instance overrides files
tail incident filter
@Internal @NotNull public FileTransferManager getFileTransfer()
public void fileTransfer(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.FileTransferManager,kotlin.Unit> options)
Define settings for file transfer facade which allows to perform basic file operations on remote servers like uploading and downloading files.
Supports multiple protocols: HTTP, SFTP, SMB and other supported by JVM.
@NotNull public PackageOptions getPackageOptions()
public void package(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageOptions,kotlin.Unit> options)
Defines common settings for built packages and deployment related behavior.
public void pkg(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageOptions,kotlin.Unit> options)
Defines common settings for built packages and deployment related behavior.
@NotNull public PackageFile package(@NotNull java.io.File file)
Read CRX package properties of specified ZIP file.
@NotNull public PackageFile pkg(@NotNull java.io.File file)
Read CRX package properties of specified ZIP file.
@NotNull public InstanceOptions getInstanceOptions()
public void instance(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceOptions,kotlin.Unit> options)
Defines instances to work with.
@NotNull public LocalInstanceManager getLocalInstanceManager()
@NotNull public LocalInstanceManager localInstance(@NotNull kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstanceManager,kotlin.Unit> options)
Define common settings valid only for instances created at local file system.
@NotNull public Environment getEnvironment()
Provides API for controlling virtualized AEM environment with HTTPD and dispatcher module.
public void environment(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.environment.Environment,kotlin.Unit> configurer)
@NotNull public NotifierFacade getNotifier()
Provides API for displaying interactive notification during running build tasks.
public void notifier(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.notifier.NotifierFacade,kotlin.Unit> configurer)
@NotNull public AemTaskFacade getTasks()
Provides API for easier creation of tasks (e.g in sequence) in the matter of Gradle task configuration avoidance.
public void tasks(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.AemTaskFacade,kotlin.Unit> configurer)
@NotNull public InstanceActionPerformer getInstanceActions()
Provides API for performing actions affecting multiple instances at once.
@NotNull public java.util.List<java.lang.String> getJavaPackages()
Collection of all java packages from all projects applying bundle plugin.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> getInstances()
All instances matching default filtering.
public void instances(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with instances matching default filtering.
public void instances(@NotNull
java.lang.String filter,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with instances which name is matching specified wildcard filter.
@NotNull public Instance instance(@NotNull java.lang.String urlOrName)
Shorthand method for getting defined instance or creating temporary instance by URL.
@NotNull
public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> instances(@NotNull
java.lang.Iterable<java.lang.String> urlsOrNames)
Shorthand method for getting defined instances or creating temporary instances by URLs.
@NotNull public Instance getAnyInstance()
Get or create instance using command line parameter named 'instance' which holds instance name or URL. If it is not specified, then first instance matching default filtering fill be returned.
Purpose of this method is to easily get any instance to work with (no matter how it will be defined).
@NotNull public Instance namedInstance(@Nullable java.lang.String desiredName, @NotNull java.lang.String defaultName)
Get all instances which names are matching wildcard filter specified via command line parameter 'instance.name'. By default, this method respects current environment which is used to work only with instances running locally.
If none instances will be found, throws exception.
@NotNull
public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> filterInstances(@NotNull
java.lang.String nameMatcher)
Find all instances which names are matching wildcard filter specified via command line parameter 'instance.name'.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> getAuthorInstances()
Get all author instances running on current environment.
public void authorInstances(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with all author instances running on current environment.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> getPublishInstances()
Get all publish instances running on current environment.
public void publishInstances(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> consumer)
Work in parallel with all publish instances running on current environment.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> getLocalInstances()
Get all local instances.
public void localInstances(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstance,kotlin.Unit> consumer)
Work in parallel with all local instances.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.RemoteInstance> getRemoteInstances()
Get all remote instances.
public void remoteInstances(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.RemoteInstance,kotlin.Unit> consumer)
Work in parallel with all remote instances.
@NotNull public java.io.File getPackage()
Get CRX package defined to be built (could not yet exist).
@NotNull public java.io.File getPkg()
@NotNull public java.util.List<java.io.File> getPackages()
Get all CRX packages defined to be built.
@NotNull
public java.util.List<java.io.File> dependentPackages(@NotNull
org.gradle.api.Task task)
Get all CRX packages built before running particular task.
public void sync(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,kotlin.Unit> synchronizer)
In parallel, work with services of all instances matching default filtering.
public <T> T sync(@NotNull
Instance instance,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? extends T> synchronizer)
Work with instance services of specified instance.
public void sync(@NotNull
java.lang.Iterable<? extends com.cognifide.gradle.aem.common.instance.Instance> instances,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.InstanceSync,kotlin.Unit> synchronizer)
In parallel, work with services of all specified instances.
public void syncPackages(@NotNull
kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? super java.io.File,kotlin.Unit> synchronizer)
In parallel, work with built packages and services of instances matching default filtering.
public void syncPackages(@NotNull
java.lang.Iterable<? extends com.cognifide.gradle.aem.common.instance.Instance> instances,
@NotNull
java.lang.Iterable<? extends java.io.File> packages,
@NotNull
kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.common.instance.InstanceSync,? super java.io.File,kotlin.Unit> synchronizer)
In parallel, work with built packages and services of specified instances.
@NotNull
public java.io.File composePackage(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition)
Build minimal CRX package in-place / only via code. All details like Vault properties, archive destination directory, file name are customizable.
public <T> T progress(int total,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator with percentage while performing some action.
public <T> T progress(long total,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator with percentage while performing some action.
public <T> T progress(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
public <T> T progressIndicator(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressIndicator,? extends T> action)
Show asynchronous progress indicator while performing some action.
public <T> T progressLogger(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressLogger,? extends T> action)
Show synchronous progress logger while performing some action.
public void waitFor(long time)
Wait some time after performing asynchronous operation.
public void progressCountdown(long time)
Show synchronous progress countdown / time to wait after performing asynchronous operation.
public void progressCountdown(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.ProgressCountdown,kotlin.Unit> options)
Show synchronous progress countdown / time to wait after performing asynchronous operation.
@NotNull public FilterFile getFilter()
@NotNull public FilterFile filter(@NotNull java.io.File file)
Get Vault filter object for specified file.
@NotNull public FilterFile filter(@NotNull java.lang.String path)
Get Vault filter object for specified path.
@NotNull
public java.io.File temporaryDir(@NotNull
org.gradle.api.Task task)
Determine temporary directory for particular task.
@NotNull
public java.io.File temporaryDir(@NotNull
java.lang.String name)
Determine temporary directory for particular service (any name).
@NotNull
public java.io.File temporaryFile(@NotNull
java.lang.String name)
Determine temporary file for particular service (any name).
@NotNull public java.io.File getTemporaryDir()
Predefined temporary directory.
@NotNull public Retry retry(@NotNull kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.build.Retry,kotlin.Unit> configurer)
Factory method for configuration object determining how operation should be retried.
@NotNull public Retry retry()
Factory method for configuration object determining that operation should not be retried.
public void fileWatcher(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.FileWatcher,kotlin.Unit> options)
React on file changes under configured directory.
public <T> T http(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.http.HttpClient,? extends T> consumer)
Perform any HTTP requests to external endpoints.
public <T> T httpFile(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.http.HttpFileTransfer,? extends T> consumer)
Download files using HTTP protocol using custom settings.
public <T> T sftpFile(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.sftp.SftpFileTransfer,? extends T> consumer)
Transfer files using over SFTP protocol using custom settings.
public <T> T smbFile(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.file.transfer.smb.SmbFileTransfer,? extends T> consumer)
Transfer files using over SMB protocol using custom settings.
@NotNull public Parallel getParallel()
@NotNull public Formats getFormats()
@NotNull public BuildScope getBuildScope()
@NotNull public org.gradle.api.Project getProject()