@groovy.transform.CompileStatic @SuppressWarnings(value: MethodCount) @NonExtensible class AsciidoctorJExtension extends org.asciidoctor.gradle.base.AbstractImplementationEngineExtension
Extension for configuring AsciidoctorJ. It can be used as both a project and a task extension.
Fields inherited from class | Fields |
---|---|
class org.asciidoctor.gradle.base.AbstractImplementationEngineExtension |
__$stMC, __$stMC |
Constructor and description |
---|
AsciidoctorJExtension
(Project project) Attach extension to a project. |
AsciidoctorJExtension
(Task task) Attach extension to a task. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
docExtensions(groovy.lang.Closure<?>[] exts) Defines extensions to be registered. |
|
void |
docExtensions(File[] exts) Defines extensions to be registered. |
|
void |
docExtensions(String[] exts) Defines extensions to be registered. |
|
void |
docExtensions(Provider<?>[] exts) Defines extensions to be registered. |
|
void |
docExtensions(Dependency[] exts) Defines extensions to be registered. |
|
void |
docExtensions(Project[] exts) Defines extensions to be registered. |
|
void |
docExtensionsFromExternal(String[] exts) Defines extensions to be registered. |
|
void |
fatalWarnings(Object[] patterns) Adds additional message patterns for treating Asciidoctor log messages as errors. |
|
Configuration |
getConfiguration() Returns a runConfiguration of the configured AsciidoctorJ dependencies. |
|
List<Object> |
getDocExtensions() Return extensions to be registered. |
|
List<Pattern> |
getFatalWarnings() Provide patterns for Asciidoctor messages that are treated as failures. |
|
String |
getJrubyVersion() The version of JRuby to use. |
|
LogLevel |
getLogLevel() The level at which the AsciidoctorJ process should be logging. |
|
AsciidoctorJModules |
getModules() Additional AsciidoctorJ modules to be configured. |
|
Map<String, Object> |
getOptions() Returns all of the Asciidoctor options. |
|
List<String> |
getRequires() Returns the set of Ruby modules to be included. |
|
String |
getVersion() Version of AsciidoctorJ that should be used. |
|
void |
loadJRubyResolutionStrategy(Configuration cfg) Loads a JRUBy resolution rule onto the given configuration. |
|
Pattern |
missingIncludes() Returns a patterns suitable for detecting missing include files. |
|
void |
modules(groovy.lang.Closure cfg) Configure modules via a closure. |
|
void |
modules(Action<AsciidoctorJModules> cfg) Configure modules via an Action . |
|
void |
options(Map m) Add additional Asciidoctor options |
|
void |
requires(Object[] b) Appends new set of Ruby modules to be included. |
|
void |
resolutionStrategy(Action<ResolutionStrategy> strategy) Adds rules to the resolution strategy for resolving asciidoctorj related dependencies |
|
void |
resolutionStrategy(groovy.lang.Closure strategy) Adds rules to the resolution strategy for resolving asciidoctorj related dependencies |
|
void |
setDocExtensions(Iterable<Object> newExtensions) Clears the existing list of extensions and replace with a new set. |
|
void |
setFatalWarnings(Iterable<Object> patterns) Provide patterns for Asciidoctor messages that are treated as failures. |
|
void |
setJrubyVersion(Object v) Set a version of JRuby to use. |
|
void |
setLogLevel(LogLevel logLevel) Set the level at which the AsciidoctorJ process should be logging. |
|
void |
setLogLevel(String logLevel) Set the level at which the AsciidoctorJ process should be logging. |
|
void |
setOptions(Map m) Apply a new set of Asciidoctor options, clearing any options previously set. |
|
void |
setRequires(Object[] b) Applies a new set of Ruby modules to be included, clearing any previous set. |
|
void |
setVersion(Object v) Set a new version to use. |
Methods inherited from class | Name |
---|---|
class org.asciidoctor.gradle.base.AbstractImplementationEngineExtension |
org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#attributeProvider(org.asciidoctor.gradle.base.AsciidoctorAttributeProvider), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#attributeProvider(groovy.lang.Closure), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#pfaccess$0(org.asciidoctor.gradle.base.AbstractImplementationEngineExtension), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#this$dist$invoke$2(java.lang.String, java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#this$dist$set$2(java.lang.String, java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#this$dist$get$2(java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getAttributeProviders(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#resetAttributesForLang(java.util.Map, java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#attributesForLang(java.util.Map, java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getSafeMode(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setSafeMode(org.asciidoctor.gradle.base.SafeMode), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setSafeMode(int), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setSafeMode(java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getAttributesForLang(java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#attribute(java.lang.String, java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#attributes(java.util.Map), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setAttributes(java.util.Map), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getAttributes(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getProjectOperations(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#invokeMethod(java.lang.String, java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getMetaClass(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setMetaClass(groovy.lang.MetaClass), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getProperty(java.lang.String), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#setProperty(java.lang.String, java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#wait(long), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#wait(long, int), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#wait(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#equals(java.lang.Object), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#toString(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#hashCode(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#getClass(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#notify(), org.asciidoctor.gradle.base.AbstractImplementationEngineExtension#notifyAll() |
Attach extension to a project.
Attach extension to a task.
Defines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
If you use this method, then Gradle JARs will be leaked on to the classpath. This might not be what you want.
Closures
- of Asciidoctor Groovy DSL extensions.Defines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
Files
- of Groovy code of Asciidoctor Groovy DSL extensions.Defines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
Strings
- of Groovy code of Asciidoctor Groovy DSL extensions.Defines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
Provider
- to strings or files of Groovy code of Asciidoctor Groovy DSL extensionsDefines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
THis method is specifically useful for project dependencies.
Dependencies
- containing Asciidoctor extensionsDefines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
THis method is specifically useful for project dependencies.
Dependencies
- containing Asciidoctor extensionsDefines extensions to be registered. The given parameters should either contain Asciidoctor Groovy DSL closures or files with content conforming to the Asciidoctor Groovy DSL.
External
- dependency definitions using standard Gradle dependency notation.Adds additional message patterns for treating Asciidoctor log messages as errors.
patterns
- Message patterns.Returns a runConfiguration of the configured AsciidoctorJ dependencies.
Return extensions to be registered. These extensionRegistry are not registered at this call. That action is left to the specific task at its execution time.
Provide patterns for Asciidoctor messages that are treated as failures.
The version of JRuby to use. If no version of JRuby is specified the one that is linked to AsciidoctorJ will be used.
null
to use the JRuby version that is
linked to the specified version of AsciidoctorJ.The level at which the AsciidoctorJ process should be logging.
project.logging.level
.Additional AsciidoctorJ modules to be configured.
Returns all of the Asciidoctor options.
Version of AsciidoctorJ that should be used.
Loads a JRUBy resolution rule onto the given configuration.
cfg
- Configuration.Returns a patterns suitable for detecting missing include files. This can be passed to fatalWarnings(Object ...)
Configure modules via a closure.
cfg
- Configurating closureConfigure modules via an Action
.
cfg
- Configurating Action
Add additional Asciidoctor options This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will use this options in the task in addition to any global options.
m
- Map with new optionsAppends new set of Ruby modules to be included.
b
- One or more ruby modules to be includedAdds rules to the resolution strategy for resolving asciidoctorj related dependencies
strategy
- Additional resolution strategy. Takes a ResolutionStrategy as parameter.Adds rules to the resolution strategy for resolving asciidoctorj related dependencies
strategy
- Additional resolution strategy. Takes a ResolutionStrategy as parameter.Clears the existing list of extensions and replace with a new set. If this is declared on a task extension all extension from the global project extension will be ignored.
Provide patterns for Asciidoctor messages that are treated as failures. Clears any existing message patterns. If this method is called on a task extension, the patterns from the project extension will be ignored.
Set a version of JRuby to use. The version specified is not a guarantetd version, simply a minimum required version. If the version of asciidoctorj is dependent on a version later than the one specified here, then that would be used instead. In such cases iif the exact version needs to be forced then a resolution strategy needs to be provided via resolutionStrategy.
v
- JRuby versionSet the level at which the AsciidoctorJ process should be logging.
logLevel
- LogLevel to useSet the level at which the AsciidoctorJ process should be logging.
logLevel
- LogLevel to useApply a new set of Asciidoctor options, clearing any options previously set. This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will override the global options.
m
- Map with new optionsApplies a new set of Ruby modules to be included, clearing any previous set. If this is called on a task extension, the global project requires will be ignored.
b
- One or more ruby modules to be includedSet a new version to use.
v
- New version to be used. Can be of anything that be be resolved by
org.ysb33r.grolifant.api.core.StringTools#stringizeCopyright © 2013-2024 the original author or authors. All rights reserved.