Skip to content

Commit

Permalink
GEODE-5688 Create task to generate all sources for better IDE behavior (
Browse files Browse the repository at this point in the history
apache#2422)



Use `./gradlew generate` to create the sources from both protobuf and
ANTLR, then refresh the IDE sources and build as normal.
  • Loading branch information
robbadler authored and jake-at-work committed Sep 17, 2018
1 parent 0adc22e commit 0a493c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@ task devBuild(dependsOn: [":assemble"]) {
}
}
}

task generate() {
group = 'Build'
description = "Top-level target for all source generation. Helps IDE integration"
}
2 changes: 2 additions & 0 deletions geode-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,5 @@ distributedTest {
// Some tests have inner tests that should be ignored
exclude "**/*\$*.class"
}

rootProject.generate.dependsOn(generateGrammarSource)
4 changes: 4 additions & 0 deletions geode-protobuf-messages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ task zip(type: Zip) {
}

assemble.dependsOn 'zip'

afterEvaluate {
rootProject.generate.dependsOn(generateProto)
}

0 comments on commit 0a493c3

Please sign in to comment.