Code formatting.
This commit is contained in:
parent
fc1ca779ca
commit
f9dd17da1f
2 changed files with 4 additions and 8 deletions
|
@ -10,16 +10,14 @@ import org.apache.tools.ant.taskdefs.condition.Os
|
|||
|
||||
defaultTasks 'deploy'
|
||||
|
||||
def getVersion(isIncrement = false)
|
||||
{
|
||||
def getVersion(isIncrement = false) {
|
||||
def propsFile = 'version.properties'
|
||||
def majorKey = 'version.major'
|
||||
def minorKey = 'version.minor'
|
||||
def patchKey = 'version.patch'
|
||||
def metaKey = 'version.buildmeta'
|
||||
def preKey = 'version.prerelease'
|
||||
if (isIncrement)
|
||||
{
|
||||
if (isIncrement) {
|
||||
ant.propertyfile(file: propsFile) {
|
||||
entry(key: patchKey,
|
||||
type: 'int',
|
||||
|
|
|
@ -11,16 +11,14 @@ def isRelease = 'release' in gradle.startParameter.taskNames
|
|||
def deployDir = 'deploy'
|
||||
|
||||
// Get version from properties file. Increment patch if specified.
|
||||
def getVersion(isIncrement = false)
|
||||
{
|
||||
def getVersion(isIncrement = false) {
|
||||
def propsFile = 'version.properties'
|
||||
def majorKey = 'version.major'
|
||||
def minorKey = 'version.minor'
|
||||
def patchKey = 'version.patch'
|
||||
def metaKey = 'version.buildmeta'
|
||||
def preKey = 'version.prerelease'
|
||||
if (isIncrement)
|
||||
{
|
||||
if (isIncrement) {
|
||||
ant.propertyfile(file: propsFile) {
|
||||
entry(key: patchKey,
|
||||
type: 'int',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue