ServiceArtifactExtension provides the service{} DSL into Gradle files which use the plugin
| Modifiers | Name | Description |
|---|---|---|
protected AbstractScmHandler |
_scmHandler |
SCM Handler appropriate for this execution |
protected Data |
data |
Data container object for implementing the data {} DSL |
protected boolean |
defaultJarTaskEnabled |
Disable the built-in jar tasks by default |
protected java.util.Map<java.lang.String, java.lang.String> |
env |
|
protected Logger |
logger |
|
protected Project |
project |
|
protected java.util.List<java.lang.String> |
serviceDependencies |
List of services that this service depends on |
protected java.lang.String |
serviceName |
Name of the service of which our artifact is a part |
| Constructor and description |
|---|
ServiceArtifactExtension
(Project project) |
ServiceArtifactExtension
(Project project, java.util.Map<java.lang.String, java.lang.String> env) |
| Type | Name and description |
|---|---|
void |
afterEvaluateHook()Internal hook to be called after the project has completed its evaluation phase |
void |
bootstrap()Bootstrap and set up whatever internal tasks/helpers we need to set up |
AbstractComponent |
component(java.util.Map keywordArguments, java.lang.String name, groovy.lang.Closure configurationSpec)Configure a component of the given type |
void |
data(groovy.lang.Closure dataConfigurationSpec) |
void |
defaultJarEnabled(boolean status)set whether the plugin should disable the default jar task provided by underlying plugins (e.g. |
void |
dependencies(java.lang.Object... arguments)set the service's service dependencies |
boolean |
getDefaultJarEnabled() |
java.util.List<java.lang.String> |
getDependencies()access the configured service dependencies |
java.lang.String |
getName()access the configured service name |
Project |
getProject()return the configured project for this service{} extension |
void |
name(java.lang.String name)set the service name |
boolean |
validateMetadata()Validate the existing metadata to ensure non-optional fields are set before we attempt to do anything with the metadata |
java.lang.String |
version(java.lang.String baseVersion)Return the appropriately computed version string based on our executing environment |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
SCM Handler appropriate for this execution
Data container object for implementing the data {} DSL
Disable the built-in jar tasks by default
List of services that this service depends on
Name of the service of which our artifact is a part
DSL helper to allow users to refer to the JRubyComponent by the JRuby constant
Internal hook to be called after the project has completed its evaluation phase
Bootstrap and set up whatever internal tasks/helpers we need to set up
Configure a component of the given type
keywordArguments - Expected to receive a KW arg of "type" to make our DSL prettyname - the name of the component getting configuredset whether the plugin should disable the default jar task provided by underlying plugins (e.g. 'java' or 'groovy')
set the service's service dependencies
access the configured service dependencies
access the configured service name
return the configured project for this service{} extension
set the service name
Validate the existing metadata to ensure non-optional fields are set before we attempt to do anything with the metadata
Return the appropriately computed version string based on our executing environment
Groovy Documentation