Skip to content

Commit

Permalink
2.x: fix "full" mode gradle code
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Oct 3, 2017
1 parent da922d2 commit c40be8e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ if (releaseTag != null && !releaseTag.isEmpty()) {
releaseTag = releaseTag.substring(1);
}
version = releaseTag;

println("Releasing with version " + project.properties["release.version"]);
project.properties.put("release.version", releaseTag);

println("Releasing with version " + version);
}

description = "RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM."
Expand Down Expand Up @@ -324,8 +325,10 @@ if (rootProject.hasProperty("releaseMode")) {

if ("full".equals(rootProject.releaseMode)) {
// based on https://github.com/bintray/gradle-bintray-plugin
println("ReleaseMode: " + rootProject.releaseMode);

def rver = version;

println("ReleaseMode: " + rootProject.releaseMode + " version " + rver);

bintray {
user = rootProject.bintrayUser
key = rootProject.bintrayKey
Expand Down

0 comments on commit c40be8e

Please sign in to comment.