| Type | Name and description |
|---|---|
java.util.Comparator<?> |
comparatorThe comparator for parsed versions |
java.util.function.Function<?, ?> |
nextDevelopmentTransformerThe next development iteration version transformer |
tane.mahuta.buildtools.version.VersionParser<?> |
parserthe parser to be used to parse the version |
java.util.function.Function<?, ?> |
releaseTransformerThe release version transformer |
java.util.function.BiFunction<?, tane.mahuta.buildtools.apilyzer.ApiCompatibilityReport, ?> |
releaseTransformerForReportThe release version transformer for an tane.mahuta.buildtools.apilyzer.ApiCompatibilityReport |
tane.mahuta.buildtools.version.VersionStorage |
storagethe storage to be used to store the version |
| Constructor and description |
|---|
VersioningExtension
(org.gradle.api.Project project)Creates a new extension for the project. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
setComparatorClosure(groovy.lang.Closure<java.lang.Integer> comparator)Set a closure as the comparator. |
|
void |
setNextDevelopmentTransformerClosure(groovy.lang.Closure<?> transformer)Set a closure for transforming the version to a release version. |
|
void |
setParser(tane.mahuta.buildtools.version.VersionParser<?> parser)Set the parser. |
|
void |
setParserClosure(groovy.lang.Closure<?> parser)Set the parser using a closure. |
|
void |
setReleaseTransformerClosure(groovy.lang.Closure<?> transformer)Set a closure for transforming the version to a release version. |
|
void |
setReleaseTransformerForReportClosure(groovy.lang.Closure<?> transformer)Set a closure for transforming the version to a release version using an tane.mahuta.buildtools.apilyzer.ApiCompatibilityReport |
|
void |
setVersion(java.lang.Object version)Set the version and parses it, if a |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The comparator for parsed versions
The next development iteration version transformer
the parser to be used to parse the version
The release version transformer
The release version transformer for an tane.mahuta.buildtools.apilyzer.ApiCompatibilityReport
the storage to be used to store the version
Creates a new extension for the project.
project - the projectSet a closure as the comparator.
comparator - the closure comparing two versionsSet a closure for transforming the version to a release version.
transformer - the transformation closure Set the parser. In case the parser is not null, the version is being parsed.
parser - the parser to setSet the parser using a closure.
parser - the parser to be setSet a closure for transforming the version to a release version.
transformer - the transformation closureSet a closure for transforming the version to a release version using an tane.mahuta.buildtools.apilyzer.ApiCompatibilityReport
transformer - the transformation closureSet the version and parses it, if a
Groovy Documentation