GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Consider Gradle build system · Issue #286 · googleapis/google-cloud-java

Consider Gradle build system #286

New issue
Copy link
New issue
Copy link
Closed
Closed
Consider Gradle build system#286
Copy link
Assignees
garrettjonesgoogle
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@anthmgoogle
anthmgoogle
opened on Oct 22, 2015
Issue body actions

Maven is very popular and idiomatic as a build system for Java. Gradle is also becoming very popular for Java. Has there been any discussion among owners of the project about potentially moving to Gradle?

Some reasons this might be interesting:

  1. GRPC Java (https://github.com/grpc/grpc-java) uses it and there may be opportunity to leverage extensions for consuming gRPC components.
  2. There is at least one significant performance difference in that "mvn install" can take minutes, while the Gradle equivalent takes less than 30 seconds.

Activity

Next
  1. aozarov
    added
    type: questionRequest for information or clarification. Not an issue.
    on Oct 22, 2015
  2. aozarov commented on Oct 23, 2015

    @aozarov
    aozarov
    on Oct 23, 2015
    Contributor
    More actions

    Personally I don't have much experience with gradle but I assume that maven is much more popular just because it is around for much longer.

    Tools, and their quality, (e.g. IDE support) is also something that we should consider.

    I don't think mvn install is a common thing to do with gcloud-java.

    I do wonder how popular gradle is among GoogleCloudPlatform or Google github projects?
    The ones I am familiar with appengine-xxxx projects, Guice, Guava are using maven.

    I also wonder what would be the cost of the transition mainly in the deploy and site building.

    /cc ludoch

  3. wrwg commented on Oct 23, 2015

    @wrwg
    wrwg
    on Oct 23, 2015
    More actions

    Yes, maven is more common today probably because it's much longer around. The Google projects you cite likely don't use it also because they pre-date its rise.

    After working with Gradle now for a few weeks, I must say it is a very impressive system. It's very easy to use, and requires less boilerplate to setup things. Gradle becomes more complex only if customization is needed, but that is just because it can do so much more than other systems.

    Gradle is used for all of Android. It is also used by grpc and protobuf.

    For gcloud-java, it might be essential to use because of the grpc and protobuf dependency. If we would not use Gradle, then we would have to re-engineer the build logic around locating and automatically downloading right versions of protoc, proto runtime, and generating stubs from it, as well as the synchronization logic of generated and edited code which comes with the veneer toolkit.

    I'm happy to create a PR a bit later which showcases how the migration would look like. I expect it's not being too complicated.

  4. wrwg commented on Oct 23, 2015

    @wrwg
    wrwg
    on Oct 23, 2015
    More actions

    PS. As you were asking for IDE support: it's working very with Gradle, both for Eclipse and IntelliJ.

  5. wrwg commented on Oct 23, 2015

    @wrwg
    wrwg
    on Oct 23, 2015
    More actions

    And for a last note, this is a good article about migration experience: https://julien.ponge.org/blog/an-experiment-in-maven-to-gradle-migration/

  6. mziccard commented on Oct 23, 2015

    @mziccard
    mziccard
    on Oct 23, 2015
    Contributor
    More actions

    I like Gradle better than maven. However I am not sure how much of a pain would be migrating from maven to gradle given our multi-module artifact deploy and site creation.

    I couldn't find anything similar to mvn site and I know this has been a blocker for several open source projects for a while. https://github.com/breskeby/GradleSite is a very outdated wrapper, while https://bitbucket.org/davidmc24/gradle-site-plugin is another site-publish plugin but it seems to have no automatic site creation. If we move to gradle we might have to build our site by hand, which I am not against.

  7. aozarov commented on Oct 23, 2015

    @aozarov
    aozarov
    on Oct 23, 2015
    Contributor
    More actions

    @wrwg as for the "essential to use because of the grpc and protobuf dependency" part, it looks like
    grpc-java provides both a maven artifact for the core library as well as a maven plugin for protobuf-based codegen. Is there more to it?

  8. wrwg commented on Oct 23, 2015

    @wrwg
    wrwg
    on Oct 23, 2015
    More actions

    @aozarov

    Where did you find a maven plugin for generating Java code from proto? I only know about the protobuf-gradle-plugin. There are some older maven plugins from others but they are not supported by the grpc team AFAICT.

    Gradle produces maven artifacts for mavenCentral and mavenLocal as well as other package repositories. Did you mean this?

  9. aozarov commented on Oct 23, 2015

    @aozarov
    aozarov
    on Oct 23, 2015
    Contributor
    More actions

    @wrwg did you look at the link I mentioned?
    It is described in the first page as such:

    Download the JAR. Or for Maven, add to your pom.xml:

    <dependency>
      <groupId>io.grpc</groupId>
      <artifactId>grpc-all</artifactId>
      <version>0.9.0</version>
    </dependency>
    

    ...
    For protobuf-based codegen integrated with the Maven build system, you can use maven-protoc-plugin:
    ...

  10. wrwg commented on Oct 23, 2015

    @wrwg
    wrwg
    on Oct 23, 2015
    More actions

    @aozarov Thanks for the pointer, I actually have not seen the link to the maven-protoc-plugin, as if you continue to read the grpc repo, its all based on protobuf-gradle-plugin ;-)

  11. garrettjonesgoogle commented on Nov 18, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Nov 18, 2016
    Contributor
    More actions

    I am going to close this now - we don't have imminent plans to move to Gradle.

  12. garrettjonesgoogle
    closed this as completedon Nov 18, 2016
  13. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  14. github-actions
    added 2 commits that reference this issue on Jun 29, 2022

    chore: regenerate README (googleapis#286)

    b852d7a

    fix: Add `shopt -s nullglob` to dependencies script (#1130) (#286)

    2101cc5
  15. 9 remaining items

  16. github-actions
    added 2 commits that reference this issue on Oct 4, 2022

    chore(main): release 1.2.5 (#289)

    14ff163

    chore(main): release 1.2.8 (#298)

    ac58e93
  17. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore: regenerate README (#286)

    8da58c8
  18. chingor13
    added 2 commits that reference this issue on Jan 6, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    af4b1a7

    chore: release 0.119.4 (#287)

    7b2f217
  19. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: release 1.105.5-SNAPSHOT (#286)

    d6a12be
  20. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore: regenerate README (googleapis#286)

    e4452aa
  21. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    8187864
  22. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v1.1…

    161de90

    chore: release 0.122.2 (#300)

    0e021f0
  23. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v1.1…

    f5409fc

    chore: release 0.122.2 (#300)

    1b4da5b
  24. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…

    bd85b39

    chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…

    6ea739e
  25. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    7c8279e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.