The extension to hold our configuration values.
| Type | Name and description |
|---|---|
java.lang.String |
defaultSlotThe name of the default slot to write to. |
DependencyExcludes |
dependencyExcludes |
java.lang.String |
globalModuleDependencySpecifies the name of a module to add as a dependency on every module generated. |
java.util.List<java.lang.String> |
modulesThe root directories to search for modules XML files that contain module descriptors. |
java.lang.String |
slotStrategyThe name of the slot strategy to us. |
java.io.File |
targetFolderThe folder to write the module structure to. |
boolean |
verbose |
| Constructor and description |
|---|
JbossModulesExtension
(org.gradle.api.internal.project.ProjectInternal project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
dependencyExcludes(groovy.lang.Closure configureClosure)Apply the given closure to configure our dependency excludes |
|
java.util.List<java.io.File> |
getCompileDependencies()The 'compile' dependencies are the primary input to this process, so if they change, we need to rebuild. |
|
boolean |
usingDefaultModules()@return true if the configuration didn't specify any modules directories |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
The name of the default slot to write to. See slotStrategy.
Specifies the name of a module to add as a dependency on every module generated.
The root directories to search for modules XML files that contain module descriptors.
If not specified, the default locations
src/main/config/jboss-modules,
src/main/resources/META-INF/jboss-modules, and
src/etc/jboss-modules is probed and - if exists - are
appended.
You may want to use only one of the locations given above. Use
config if you do not want to have the configuration files
included. Use resources/META-INF if they should and use
etc if they should not, but be stored outside the
main folder.
<modules> <dir>src/etc/jboss-modules</dir> </modules>
The name of the slot strategy to us. If not specified, the major version of the dependency will be used as slot value.
Possible values are:
| value | description |
|---|---|
| version-major | The slot has the major number of the version. The
defaultSlot is prepended, if not set to main
(e.g. defaultSlot=prodx and version 1.2.3 then the slot will
be named prodx1. |
| main | The slot has the name as given with defaultSlot. |
The folder to write the module structure to.
Apply the given closure to configure our dependency excludes
The 'compile' dependencies are the primary input to this process, so if they change, we need to rebuild.
true if the configuration didn't specify any modules directoriesGroovy Documentation