Interface AsciidoctorjGenericComponent
-
- All Known Subinterfaces:
AsciidoctorjGenericExtension,AsciidoctorjGenericOutputFormatter
public interface AsciidoctorjGenericComponentMethods for adding a generic component (backend or extension) toasciidoctorj- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattributes(java.util.Map<java.lang.String,?> attrs)Attributes that are specific to the backend.voidrequires(java.lang.String... reqs)If the backend needs one or morerequireentries to be passed to the engine, put it here.voiduseGem(java.lang.String gemName, java.lang.Object version)If the backend is provided by a GEM, then set it here.voiduseModule(java.lang.String moduleName, java.lang.Object version)If the backend is provided by an artifact from a Maven or Ivy repository, then set it here.voiduseModule(org.gradle.api.artifacts.ProjectDependency module)If the backend is produced in the current hierarchy it can be used via aProjectDependency.
-
-
-
Method Detail
-
useGem
void useGem(java.lang.String gemName, java.lang.Object version)If the backend is provided by a GEM, then set it here.Requires
org.asciidoctor.jvm.gemsto be applied, otherwise an error will be raised.One of
useGem(String, Object)oruseModule(String, Object)is required.- Parameters:
gemName- Name of GEMversion- Something convertible to a string that can provide the version.
-
useModule
void useModule(java.lang.String moduleName, java.lang.Object version)If the backend is provided by an artifact from a Maven or Ivy repository, then set it here.One of
useGem(String, Object)oruseModule(String, Object)is required- Parameters:
moduleName- A module in the formatgroup:artifact.version- Something convertible to a string that can provide the version.
-
useModule
void useModule(org.gradle.api.artifacts.ProjectDependency module)
If the backend is produced in the current hierarchy it can be used via aProjectDependency.- Parameters:
module- Project module.
-
requires
void requires(java.lang.String... reqs)
If the backend needs one or morerequireentries to be passed to the engine, put it here.- Parameters:
reqs- One or morerequireentries
-
attributes
void attributes(java.util.Map<java.lang.String,?> attrs)
Attributes that are specific to the backend.- Parameters:
attrs- Attributes of which the values are lazy-evaluated.
-
-