diff --git a/example/kobalt/src/Build.kt b/example/kobalt/src/Build.kt index f29fbcb..c168d66 100644 --- a/example/kobalt/src/Build.kt +++ b/example/kobalt/src/Build.kt @@ -38,25 +38,7 @@ val p = project { prerelease.insert(0, "+"); } - val value = p.getProperty(patchKey, "0"); - val patch: String? - - if (isIncrement) { - patch = try { - (value.toInt() + 1).toString(); - } catch (e: NumberFormatException) { - "0" - } - - FileOutputStream(propsFile).use { output -> - p.setProperty(patchKey, patch) - p.store(output, "") - } - } else { - patch = value; - } - - return (p.getProperty(majorKey, "1") + "." + p.getProperty(minorKey, "0") + "." + patch + prerelease + metadata) + return (p.getProperty(majorKey, "1") + "." + p.getProperty(minorKey, "0") + "." + p.getProperty(patchKey, "0") + prerelease + metadata) } version = getVersion() @@ -93,9 +75,3 @@ val p = project { mainClass = mainClassName } } - -@Task(name = "release", dependsOn = arrayOf("clean"), description = "Releases new version.") -fun taskRelease(project: Project): TaskResult { - project.version = project.getVersion(true) - return TaskResult() -} diff --git a/example/libs/example-3.1.45+beta.jar b/example/libs/example-3.1.45+beta.jar index bc1d77b..2929792 100644 Binary files a/example/libs/example-3.1.45+beta.jar and b/example/libs/example-3.1.45+beta.jar differ