Class CartridgeProject
-
- All Implemented Interfaces:
public class CartridgeProjectThis is part of the project extension and describes sub projects, like connectors, payment provider etc.
-
-
Field Summary
Fields Modifier and Type Field Description private final Projectprojectprivate final Property<String>dependencyprivate final Property<String>imageprivate final Property<String>testImageprivate final SetProperty<String>platformsprivate final FilePackageconfigPackage
-
Constructor Summary
Constructors Constructor Description CartridgeProject(Project project, ObjectFactory objectFactory)provides a sub project configuration.
-
Method Summary
Modifier and Type Method Description final ProjectgetProject()final Property<String>getDependency()Dependency of the base project. final Property<String>getImage()Image path for the project. final Property<String>getTestImage()Test image path for the project. final SetProperty<String>getPlatforms()Dependency of version filters of the base project. final FilePackagegetConfigPackage()Configuration for configuration package. final Unitplatform(String dependency)Add a dependency to the set of dependency filter dependencies. final UnitconfigPackage(Action<in FilePackage> action)Provides the configuration of a package with configuration files. final UnitconfigPackage(Closure<FilePackage> c)Provides the configuration of a package with configuration files. -
-
Method Detail
-
getProject
final Project getProject()
-
getDependency
@Input() final Property<String> getDependency()
Dependency of the base project.
-
getTestImage
@Optional()@Input() final Property<String> getTestImage()
Test image path for the project.
-
getPlatforms
@Optional()@Input() final SetProperty<String> getPlatforms()
Dependency of version filters of the base project.
-
getConfigPackage
final FilePackage getConfigPackage()
Configuration for configuration package.
-
platform
final Unit platform(String dependency)
Add a dependency to the set of dependency filter dependencies.
- Parameters:
dependency- external module dependency in a short notation
-
configPackage
final Unit configPackage(Action<in FilePackage> action)
Provides the configuration of a package with configuration files.
- Parameters:
action- action to configure a file package.
-
configPackage
final Unit configPackage(Closure<FilePackage> c)
Provides the configuration of a package with configuration files.
- Parameters:
c- closure to configure a file package.
-
-
-
-