public class BuildExtension extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
logger |
(package private) BuildPlugin |
plugin |
(package private) Project |
project |
| Constructor and Description |
|---|
BuildExtension(BuildPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
List<MavenArtifact> |
existingArtifacts(Configuration configuration)
Copies artifacts that can be resolved from the configuration's dependencies, while
excluding the JAR file being built.
|
Action<? extends XmlProvider> |
xmlAction(Configuration configuration)
Returns
xmlAction(configuration, null). |
Action<? extends XmlProvider> |
xmlAction(Configuration configuration,
String extension)
Returns object to be called with
MavenPom.withXml(Action) to create a pom.xml file for "-platform" artifacts. |
private final org.slf4j.Logger logger
BuildPlugin plugin
Project project
public BuildExtension(BuildPlugin plugin)
public List<MavenArtifact> existingArtifacts(Configuration configuration) throws IOException
configuration - containing dependencies to useIOException - when JAR files cannot be copied into the project's build libs directorypublic Action<? extends XmlProvider> xmlAction(Configuration configuration)
xmlAction(configuration, null).public Action<? extends XmlProvider> xmlAction(Configuration configuration, String extension)
MavenPom.withXml(Action) to create a pom.xml file for "-platform" artifacts.configuration - containing dependencies to useextension - like "-gpl", "-gpu", "-python", etc (optional)Action that fills up an XmlProviderPlatformPlugin,
Reducing the Number of Dependencies