Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Restructure Java staging clients #297

Merged
merged 14 commits into from
May 18, 2017
Merged

Restructure Java staging clients #297

merged 14 commits into from
May 18, 2017

Conversation

shinfan
Copy link
Contributor

@shinfan shinfan commented May 11, 2017

The new structure will make the CI depend on the local proto and grpc clients instead of depending on Maven.

The new structure looks like:

  • root
    • generated
      • java
        • settings.gradle
        • gradle wrapper
        • build.gradle
        • gapic-* clients
        • proto-* clients
          • build.gradle
        • grpc-* clients
          • build.gradle

In the root pom, the dependency configuration looks like this: (Use error reporting as an example)

project(':generated:java:gapic-google-cloud-error-reporting-v1beta1') {
  dependencies {
    compile project(':generated:java:proto-google-cloud-error-reporting-v1beta1')
    testCompile project(':generated:java:grpc-google-cloud-error-reporting-v1beta1')
  }
} 

@lukesneeringer
Copy link
Contributor

lukesneeringer commented May 11, 2017

Can the gradle specific stuff live in generated/java/ and not in the shared area?

@shinfan
Copy link
Contributor Author

shinfan commented May 11, 2017

@lukesneeringer I have moved the java stuff under generated/java and created an issue to move PHP stuff under generated/php. PTAL.

@@ -87,7 +87,7 @@
* </pre>
*/
@Generated("by GAPIC")
@ExperimentalApi
@BetaApi

This comment was marked as spam.

This comment was marked as spam.

@lukesneeringer
Copy link
Contributor

@shinfan Thanks. :-)

@shinfan shinfan mentioned this pull request May 18, 2017
@shinfan
Copy link
Contributor Author

shinfan commented May 18, 2017

@garrettjonesgoogle PTAL

dependencies {
compile "com.google.protobuf:protobuf-java:3.2.0"
compile "com.google.api:api-common:1.0.0-rc1"
compile "com.google.api.grpc:proto-google-common-protos:0.1.9"

This comment was marked as spam.

This comment was marked as spam.


artifacts {
archives javadocJar, sourcesJar
}

This comment was marked as spam.

This comment was marked as spam.


dependencies {
compile "com.google.protobuf:protobuf-java:3.2.0"
compile "com.google.api:api-common:1.0.0-rc1"

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,42 @@
buildscript {

This comment was marked as spam.

This comment was marked as spam.

@shinfan
Copy link
Contributor Author

shinfan commented May 18, 2017

@garrettjonesgoogle PTAL

dependencies {
compile "com.google.protobuf:protobuf-java:3.2.0"
compile "com.google.api:api-common:1.1.0"
compile "com.google.api.grpc:proto-google-common-protos:0.1.11"

This comment was marked as spam.

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Member

LGTM after tests pass

@shinfan shinfan merged commit 755dfd6 into master May 18, 2017
@shinfan shinfan deleted the java branch May 18, 2017 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants