Twits du Jour (Apr 28)
- I'm at @TheUPSStore in Everett, WA swarmapp.com/c/2BFC4zpH2GU #
- I'm at Costco Wholesale in Everett, WA swarmapp.com/c/7MT0wuy0kM9 #
- I'm at Everett City Clerk Treasurer in Everett, WA swarmapp.com/c/fsa5LRSrJC6 #
I've published a new plug-in for Cédric's Kobalt build system based on Kotlin.
The PropertyFile plug-in provides an optional task for editing property files. It is inspired by the ant PropertyFile task.
import net.thauvin.erik.kobalt.plugin.propertyfile.*
val bs = buildScript {
plugins("net.thauvin.erik:kobalt-property-file:")
}
val p = project {
name = "example"
propertyFile {
file = "version.properties"
comment = "##Generated file - do not modify!"
entry(key = "product.build.major", value = "3")
entry(key = "product.build.minor", type = Types.INT, operation = Operations.ADD)
entry(key = "product.build.patch", value = "0")
entry(key = "product.build.date" , type = Types.DATE, value = "now")
}
}
Documentation and source are on GitHub.