build.gradle.kts: separate versions for release and development (snapshot)

This commit is contained in:
Karl Tauber
2020-02-05 15:21:01 +01:00
parent 9d046ecd1d
commit 84d05603ef
7 changed files with 6 additions and 13 deletions

View File

@@ -14,9 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
version = "0.26.1-SNAPSHOT" val releaseVersion = "0.26"
val developmentVersion = "0.27-SNAPSHOT"
version = if( java.lang.Boolean.getBoolean( "release" ) ) releaseVersion else developmentVersion
allprojects { allprojects {
version = rootProject.version
repositories { repositories {
jcenter() jcenter()
} }

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
`maven-publish` `maven-publish`

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
id( "com.jfrog.bintray" ) version "1.8.4" id( "com.jfrog.bintray" ) version "1.8.4"

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
} }

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
`maven-publish` `maven-publish`

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
`maven-publish` `maven-publish`

View File

@@ -14,8 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
version = rootProject.version
plugins { plugins {
`java-library` `java-library`
} }