|
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 Executor |
executor
|
protected ReleaseExtension |
extension
|
protected Project |
project
|
| Method Summary | |
|---|---|
protected static java.lang.String
|
capitalize(java.lang.String s)
Capitalizes first letter of the String specified. |
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.String defaultVal = "")
|
Logger
|
getLog()
Retrieves SLF4J Logger instance. |
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 Executor executor
protected ReleaseExtension extension
protected Project project
| Method Detail |
|---|
protected static java.lang.String capitalize(java.lang.String s)
s - String to capitalize
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.String defaultVal = "")
Logger getLog()
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