abstract class CliArtifactExtension extends java.lang.Object
Configuration for GrailsCliArtifactGradlePlugin.
| Constructor and description |
|---|
CliArtifactExtension() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract Property<java.lang.String> |
getArtifactId()The artifactId of the companion cli artifact; defaults to "${project.name-cli"}. |
|
abstract Property<java.lang.String> |
getAutomaticModuleName()The optional Automatic-Module-Name of the companion cli jar. |
|
abstract Property<java.lang.Boolean> |
getDefaultDependencies()Whether the plugin adds the default cli dependencies — the plugin project's own runtime classes and the org.apache.grails:grails-core-cli command contract — to
cliApi. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The artifactId of the companion cli artifact; defaults to "${project.name-cli"}.
When customized, the companion's variants carry "${group:${artifactId}"} as an
additional capability (alongside the Gradle default "${group:${project.name}-cli"}),
so in-build consumers can require the advertised coordinate either way.
The optional Automatic-Module-Name of the companion cli jar. Recommended: a unique,
stable JPMS module name matching the cli source set's package
(e.g. com.example.myplugin.cli).
Whether the plugin adds the default cli dependencies — the plugin project's own runtime
classes and the org.apache.grails:grails-core-cli command contract — to
cliApi. Defaults to true; disable to wire the cli dependency graph manually
(e.g. with project dependencies inside a composite build).