Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Update Java grpc metadata for new staging structure #1265

Merged
merged 4 commits into from
May 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class JavaGrpcPackageMetadataTransformer extends JavaPackageMetadataTrans
private final Map<String, String> snippetsOutput =
ImmutableMap.of(
"LICENSE.snip", "LICENSE",
"metadatagen/java/grpc/package.snip", "build.gradle");
"metadatagen/java/grpc/build.gradle.snip", "build.gradle");

@Override
protected Map<String, String> getSnippetsOutput() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class JavaProtoPackageMetadataTransformer extends JavaPackageMetadataTran
private final Map<String, String> snippetsOutput =
ImmutableMap.of(
"LICENSE.snip", "LICENSE",
"metadatagen/java/grpc/package.snip", "build.gradle");
"metadatagen/java/grpc/build.gradle.snip", "build.gradle");

@Override
protected Map<String, String> getSnippetsOutput() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
tasks.uploadArchives.dependsOn(failUploadArchives)
}

task checkOutGhPages {
task checkOutGhPages << {
if (!new File('tmp_gh-pages').exists()) {
exec {
commandLine 'git', 'clone', '--branch', 'gh-pages',
Expand Down Expand Up @@ -152,6 +152,7 @@
task updateDocsWithCurrentVersion {
dependsOn 'createApiDocsRedirect'
}

@end

@private dependencies(metadata)
Expand All @@ -161,12 +162,12 @@
compile "com.google.protobuf:protobuf-java:{@metadata.protoVersionBound.lower}"
compile "com.google.api:api-common:{@metadata.apiCommonVersionBound.lower}"
@join dependency : metadata.protoPackageDependencies
compile "com.google.api.grpc:{@dependency.name}:{@dependency.versionBound.lower}"
compile project(":{@dependency.name}")
@end
@case "GRPC"
compile "io.grpc:grpc-stub:{@metadata.grpcVersionBound.lower}"
compile "io.grpc:grpc-protobuf:{@metadata.grpcVersionBound.lower}"
compile "com.google.api.grpc:{@metadata.protoPackageName}:{@metadata.packageVersionBound.lower}"
compile project(":{@metadata.protoPackageName}")
@default
$unhandledCase: {@metadata.generationLayer}$
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
tasks.uploadArchives.dependsOn(failUploadArchives)
}

task checkOutGhPages {
task checkOutGhPages << {
if (!new File('tmp_gh-pages').exists()) {
exec {
commandLine 'git', 'clone', '--branch', 'gh-pages',
Expand Down Expand Up @@ -358,3 +358,4 @@ task createApiDocsRedirect {
task updateDocsWithCurrentVersion {
dependsOn 'createApiDocsRedirect'
}

Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ repositories {
dependencies {
compile "io.grpc:grpc-stub:1.0.1"
compile "io.grpc:grpc-protobuf:1.0.1"
compile "com.google.api.grpc:proto-google-cloud-library-v1:0.1.7"
compile project(":proto-google-cloud-library-v1")
}

ext {
Expand Down Expand Up @@ -312,7 +312,7 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
tasks.uploadArchives.dependsOn(failUploadArchives)
}

task checkOutGhPages {
task checkOutGhPages << {
if (!new File('tmp_gh-pages').exists()) {
exec {
commandLine 'git', 'clone', '--branch', 'gh-pages',
Expand Down Expand Up @@ -359,3 +359,4 @@ task createApiDocsRedirect {
task updateDocsWithCurrentVersion {
dependsOn 'createApiDocsRedirect'
}

Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ repositories {
dependencies {
compile "com.google.protobuf:protobuf-java:3.0.0"
compile "com.google.api:api-common:0.0.2"
compile "com.google.api.grpc:proto-google-common-protos:0.1.6"
compile "com.google.api.grpc:proto-google-some-other-package-v1:0.0.0"
compile project(":proto-google-common-protos")
compile project(":proto-google-some-other-package-v1")
}

ext {
Expand Down Expand Up @@ -313,7 +313,7 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
tasks.uploadArchives.dependsOn(failUploadArchives)
}

task checkOutGhPages {
task checkOutGhPages << {
if (!new File('tmp_gh-pages').exists()) {
exec {
commandLine 'git', 'clone', '--branch', 'gh-pages',
Expand Down Expand Up @@ -360,3 +360,4 @@ task createApiDocsRedirect {
task updateDocsWithCurrentVersion {
dependsOn 'createApiDocsRedirect'
}