@SuppressWarnings('AbstractClassWithoutAbstractMethod') @groovy.transform.CompileStatic abstract class ProjectToolsProxy extends Object
| Modifiers | Name | Description |
|---|---|---|
protected static class |
ProjectToolsProxy.GradleProjectVersion |
| Modifiers | Name | Description |
|---|---|---|
static String |
UNSPECIFIED_PROJECT_GROUP |
|
static String |
UNSPECIFIED_PROJECT_VERSION |
|
protected org.ysb33r.grolifant.api.core.ProjectOperations |
projectOperations |
| Type | Name and description |
|---|---|
Provider<String> |
versionProvider |
| Constructor and description |
|---|
protected ProjectToolsProxy
(org.ysb33r.grolifant.api.core.ProjectOperations po, Project tempProjectReference, Provider<String> gradleVersionPropertyProvider) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Configuration |
asConfiguration(Object configurationThingy)Resolves an arbitrary item to a Configuration instance. |
|
java.util.Collection<Configuration> |
asConfigurations(java.util.Collection<?> configurationThingies)Resolves arbitrary items to a collection of Configuration instances. |
|
Provider<String> |
getVersionProvider()Lazy-evaluated project version. |
|
void |
setVersionProvider(Object newVersion)Sets a new version for a project. |
|
protected void |
updateLegacyVersion() |
|
protected void |
updateVersion(Provider<String> newVersion) |
Resolves an arbitrary item to a Configuration instance.
configurationThingy - Instance or Configuration or something that resolves to a string.Resolves arbitrary items to a collection of Configuration instances.
configurationThingies - Collection that might contain Configuration or string-type instancesLazy-evaluated project version.
Sets a new version for a project.
This creates an internal objhect that can safely be evaluated by Gradle's Project.getVersion.
newVersion - Anything that can be converted to a string using
org.ysb33r.grolifant.api.core.StringTools.Groovy Documentation