Synchronized java and kotlin templates.

This commit is contained in:
Erik C. Thauvin 2017-04-16 14:21:17 -07:00
parent 80700b2ad7
commit 3f630c1b55
2 changed files with 42 additions and 47 deletions

View file

@ -34,9 +34,8 @@ object {{className}} {
@JvmField
val preRelease = "{{preRelease}}"
@JvmStatic
val version: String
get() = ("$major.$minor.$patch" + preReleaseWithPrefix() + buildMetaWithPrefix())
@JvmField
val version = "$major.$minor.$patch" + preReleaseWithPrefix() + buildMetaWithPrefix()
@JvmStatic
fun preReleaseWithPrefix(prefix: String = "-"): String {