You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nn...@apache.org on 2018/09/11 22:55:02 UTC

[geode] branch develop updated: GEODE-5723: Don't publish to maven repo unless SNAPSHOT. (#2453)

This is an automated email from the ASF dual-hosted git repository.

nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4e099fe  GEODE-5723: Don't publish to maven repo unless SNAPSHOT. (#2453)
4e099fe is described below

commit 4e099fe1ab6fbe09973e2387b3e751949c9260ac
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Tue Sep 11 15:54:55 2018 -0700

    GEODE-5723: Don't publish to maven repo unless SNAPSHOT. (#2453)
    
    Co-authored-by: Dick Cavender <dc...@pivotal.io>
    Co-authored-by: Jacob Barrett <jb...@pivotal.io>
---
 gradle/publish.gradle | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gradle/publish.gradle b/gradle/publish.gradle
index f0a169b..4237471 100644
--- a/gradle/publish.gradle
+++ b/gradle/publish.gradle
@@ -299,3 +299,12 @@ gradle.taskGraph.whenReady { taskGraph ->
     }
   }
 }
+
+
+allprojects {
+  afterEvaluate {
+    tasks.withType(PublishToMavenRepository) {
+      it.enabled = version.endsWith('SNAPSHOT')
+    }
+  }
+}