Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@garrettjonesgoogle
Copy link
Member

Fixes #603

For some reason, maven-publish doesn't seem to pick up the version set by sub-module build.gradle files, so it needs to be set in the submodules section of the main build.gradle file.

I have tested by running the following (after locally bumping the version):

./gradlew publishMavenJavaPublicationToMavenRepository

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 12, 2018
@codecov-io
Copy link

codecov-io commented Oct 12, 2018

Codecov Report

Merging #605 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #605   +/-   ##
=========================================
  Coverage     75.03%   75.03%           
  Complexity      935      935           
=========================================
  Files           177      177           
  Lines          4090     4090           
  Branches        323      323           
=========================================
  Hits           3069     3069           
  Misses          869      869           
  Partials        152      152

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90957ff...f6fc277. Read the comment docs.

Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic & Unicorns

To install GAX into the local maven repository:

```sh
./gradlew publishToMavenLocal -Pskip.signing

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

build.gradle Outdated

apply plugin: 'maven-publish'

if (project.name.equals("gax")) {

This comment was marked as spam.

This comment was marked as spam.

build.gradle Outdated
packaging = 'jar'
artifactId = project.name
description = 'Google Api eXtensions'
url = 'https://github.com/googleapis'

This comment was marked as spam.

This comment was marked as spam.

build.gradle Outdated
description 'Google Api eXtensions'
url 'https://github.com/googleapis'
pom {
name = 'GAX (Google Api eXtensions)'

This comment was marked as spam.

This comment was marked as spam.

build.gradle Outdated
url 'https://github.com/googleapis'
organization 'Google, Inc.'
organizationUrl 'https://www.google.com'
id = 'GoogleAPIs'

This comment was marked as spam.

This comment was marked as spam.

build.gradle Outdated
// We need to spawn a new gradle build process in order to upload appropriately
// More details: http://stackoverflow.com/questions/31614735/gradle-uploadarchives-artificats-namespace-when-depending-on-a-plugin
commandLine './gradlew', 'uploadArchives'
commandLine './gradlew', 'publishMavenJavaPublicationToMavenRepository'

This comment was marked as spam.

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Member Author

Made one edit - PTAL

Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@garrettjonesgoogle garrettjonesgoogle merged commit 638c5cc into googleapis:master Oct 16, 2018
Raibaz pushed a commit to Raibaz/gax-java that referenced this pull request Oct 25, 2018
Raibaz pushed a commit to Raibaz/gax-java that referenced this pull request Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants