https://kotlinlang.org logo
#kobalt
Title
# kobalt
e

ethauvin

04/18/2017, 4:56 AM
Figures. Making some progress here too, all working:
Copy code
propertyFile {
        file = "version.properties"
        entry(key = "version.major", value = "1", type = <http://Types.INT|Types.INT>)
        entry(key = "version.minor", value = "0", type = <http://Types.INT|Types.INT>)
        entry(key = "version.patch", value = "1", default = "-1", type = <http://Types.INT|Types.INT>, operation = Operations.ADD)
        entry(key = "version.date", value = "now", type = Types.DATE)
        entry(key = "version.dateISO", value = "now", type = Types.DATE, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
        entry(key = "date.nextMonth", value = "now", type = Types.DATE)
        entry(key = "date.nextMonth", value = "0", type = Types.DATE, unit = Units.MONTH, operation = Operations.ADD)
        entry(key = "akey", value = "avalue")
        entry(key = "adate", type = Types.DATE, value = "now")
        entry(key = "aint", type = <http://Types.INT|Types.INT>, default = "0", operation = Operations.ADD)
        entry(key = "<http://formated.int|formated.int>", type = <http://Types.INT|Types.INT>, default = "0013", operation = Operations.ADD, pattern = "0000")
        entry(key = "formated.date", type = Types.DATE, value = "now", pattern = "DDD HH:mm")
    }