Skip to content

Commit

Permalink
Upgrade to com.google.protobuf:protobuf-gradle-plugin:0.1.0
Browse files Browse the repository at this point in the history
Commit 76f0a09 after the previous release
(ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1) defers the
generation of generateProto tasks to post-evaluation of the project,
which make them no longer available in the evaluation phase. We need to
move the manipulation of these tasks to post-evaluation too.
  • Loading branch information
zhangkun83 committed Apr 20, 2015
1 parent 9528a27 commit af18876
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
5 changes: 4 additions & 1 deletion benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ applicationDistribution.into("bin") {
}

protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"]
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'

project.afterEvaluate {
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'
}

// Allow intellij projects to refer to generated-sources
idea {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ subprojects {
okhttp: 'com.squareup.okhttp:okhttp:2.2.0',
protobuf: 'com.google.protobuf:protobuf-java:3.0.0-alpha-2',
protobuf_nano: 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2',
protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1',
protobuf_plugin: 'com.google.protobuf:protobuf-gradle-plugin:0.1.0',

// TODO: Unreleased dependencies.
// These must already be installed in the local maven repository.
Expand Down
5 changes: 4 additions & 1 deletion compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ artifacts {

protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"]

generateTestProto.dependsOn 'local_archJava_pluginExecutable'
project.afterEvaluate {
generateTestProto.dependsOn 'local_archJava_pluginExecutable'
}

// Ignore test for the moment on Windows. It will be easier to run once the
// gradle protobuf plugin can support nano.
if (osdetector.os != 'windows') {
Expand Down
5 changes: 4 additions & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ dependencies {
}

protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"]
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'

project.afterEvaluate {
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'
}

task routeGuideServer(type: JavaExec) {
main = "io.grpc.examples.routeguide.RouteGuideServer"
Expand Down
5 changes: 4 additions & 1 deletion integration-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ task execute(dependsOn: classes, type:JavaExec) {
}

protobufCodeGenPlugins = ["java_plugin:$javaPluginPath"]
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'

project.afterEvaluate {
generateProto.dependsOn ':grpc-compiler:local_archJava_pluginExecutable'
}

// Allow intellij projects to refer to generated-sources
idea {
Expand Down

0 comments on commit af18876

Please sign in to comment.