|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.researchgate.release.PluginHelper
class PluginHelper
| Field Summary | |
|---|---|
protected java.util.Map |
attributes
|
protected Executor |
executor
|
protected ReleaseExtension |
extension
|
protected Project |
project
|
| Method Summary | |
|---|---|
java.lang.String
|
exec(java.util.Map options = [:], java.util.List commands)
Executes command specified and retrieves its "stdout" output. |
java.io.File
|
findPropertiesFile()
|
java.lang.String
|
findProperty(java.lang.String key, java.lang.Object defaultVal = null, java.lang.String deprecatedKey = null)
|
Logger
|
getLog()
Retrieves SLF4J Logger instance. |
java.lang.String
|
getReleaseVersion(java.lang.String candidateVersion = "${project.version}")
|
boolean
|
isVersionDefined()
|
protected static java.lang.String
|
readLine(java.lang.String message, java.lang.String defaultValue = null)
Reads user input from the console. |
java.lang.String
|
tagName()
|
void
|
updateVersionProperty(java.lang.String newVersion)
Updates properties file ( |
boolean
|
useAutomaticVersion()
|
void
|
warnOrThrow(boolean doThrow, java.lang.String message)
|
protected void
|
writeVersion(java.io.File file, java.lang.String key, java.lang.Object version)
|
| Methods inherited from 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() |
| Field Detail |
|---|
protected java.util.Map attributes
protected Executor executor
protected ReleaseExtension extension
protected Project project
| Method Detail |
|---|
java.lang.String exec(java.util.Map options = [:], java.util.List commands)
failOnStderr - whether execution should fail if there's any "stderr" output produced, "true" by default.commands - commands to execute
java.io.File findPropertiesFile()
java.lang.String findProperty(java.lang.String key, java.lang.Object defaultVal = null, java.lang.String deprecatedKey = null)
Logger getLog()
java.lang.String getReleaseVersion(java.lang.String candidateVersion = "${project.version}")
boolean isVersionDefined()
protected static java.lang.String readLine(java.lang.String message, java.lang.String defaultValue = null)
message - Message to displaydefaultValue - (optional) default value to display
java.lang.String tagName()
void updateVersionProperty(java.lang.String newVersion)
gradle.properties by default) with new version specified.
If configured in plugin convention then updates other properties in file additionally to version property
newVersion - new version to store in the file
boolean useAutomaticVersion()
void warnOrThrow(boolean doThrow, java.lang.String message)
protected void writeVersion(java.io.File file, java.lang.String key, java.lang.Object version)
Groovy Documentation