-
Notifications
You must be signed in to change notification settings - Fork 104
Converting from uploadArchives to publications #605
Converting from uploadArchives to publications #605
Conversation
Codecov Report
@@ 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 152Continue to review full report at Codecov.
|
vam-google
left a comment
There was a problem hiding this 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
build.gradle
Outdated
|
|
||
| apply plugin: 'maven-publish' | ||
|
|
||
| if (project.name.equals("gax")) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Made one edit - PTAL |
vam-google
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #603
For some reason,
maven-publishdoesn't seem to pick up the version set by sub-modulebuild.gradlefiles, so it needs to be set in thesubmodulessection of the mainbuild.gradlefile.I have tested by running the following (after locally bumping the version):