geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [geode] branch develop updated: GEODE-5688 Create task to generate all sources for better IDE behavior (#2422)
Date Mon, 17 Sep 2018 18:45:44 GMT
This is an automated email from the ASF dual-hosted git repository.

jbarrett 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 0a493c3  GEODE-5688 Create task to generate all sources for better IDE behavior (#2422)
0a493c3 is described below

commit 0a493c33aeab5ceb464905ea743f1e4cba59fd02
Author: Robert Houghton <rhoughton@pivotal.io>
AuthorDate: Mon Sep 17 11:45:36 2018 -0700

    GEODE-5688 Create task to generate all sources for better IDE behavior (#2422)
    
    
    
    Use `./gradlew generate` to create the sources from both protobuf and
    ANTLR, then refresh the IDE sources and build as normal.
---
 build.gradle                         | 5 +++++
 geode-core/build.gradle              | 2 ++
 geode-protobuf-messages/build.gradle | 4 ++++
 3 files changed, 11 insertions(+)

diff --git a/build.gradle b/build.gradle
index 5e94551..8b0085a 100755
--- a/build.gradle
+++ b/build.gradle
@@ -100,3 +100,8 @@ task devBuild(dependsOn: [":assemble"]) {
     }
   }
 }
+
+task generate() {
+  group = 'Build'
+  description = "Top-level target for all source generation. Helps IDE integration"
+}
diff --git a/geode-core/build.gradle b/geode-core/build.gradle
index 5cd9e7a..1375d4a 100755
--- a/geode-core/build.gradle
+++ b/geode-core/build.gradle
@@ -302,3 +302,5 @@ distributedTest {
   // Some tests have inner tests that should be ignored
   exclude "**/*\$*.class"
 }
+
+rootProject.generate.dependsOn(generateGrammarSource)
diff --git a/geode-protobuf-messages/build.gradle b/geode-protobuf-messages/build.gradle
index 3c65a58..905b3d9 100644
--- a/geode-protobuf-messages/build.gradle
+++ b/geode-protobuf-messages/build.gradle
@@ -61,3 +61,7 @@ task zip(type: Zip) {
 }
 
 assemble.dependsOn 'zip'
+
+afterEvaluate {
+  rootProject.generate.dependsOn(generateProto)
+}


Mime
View raw message