From e499956536ca12f151715b8f9f79739df9da15ff Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Wed, 1 Apr 2015 12:06:24 -0700 Subject: Update README.md --- protoc-artifacts/README.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'protoc-artifacts') diff --git a/protoc-artifacts/README.md b/protoc-artifacts/README.md index d3ef7ba2..e99e4745 100644 --- a/protoc-artifacts/README.md +++ b/protoc-artifacts/README.md @@ -16,33 +16,25 @@ The name of a published ``protoc`` artifact is in the following format: ``protoc---.exe``, e.g., ``protoc-3.0.0-alpha-3-windows-x86_64.exe``. ## System requirement -These scripts only work under Unix-like environments, e.g., Linux, MacOSX, and +Install [Apache Maven](http://maven.apache.org/) if you don't have it. + +The scripts only work under Unix-like environments, e.g., Linux, MacOSX, and Cygwin or MinGW for Windows. Please see ``README.md`` of the Protobuf project for how to set up the build environment. ## To install artifacts locally The following command will install the ``protoc`` artifact to your local Maven repository. ``` -$ ./gradlew install +$ mvn install ``` ## To push artifacts to Maven Central -Before you can upload artifacts to Maven Central repository, you must have [set -up your account with OSSRH](http://central.sonatype.org/pages/ossrh-guide.html), -and have [generated a PGP key](http://gradle.org/docs/current/userguide/signing_plugin.html) -for siging. You need to put your account information and PGP key information -in ``$HOME/.gradle/gradle.properties``, e.g.: -``` -signing.keyId=24875D73 -signing.password=secret -signing.secretKeyRingFile=/Users/me/.gnupg/secring.gpg - -ossrhUsername=your-jira-id -ossrhPassword=your-jira-password -``` +Before you can upload artifacts to Maven Central repository, make sure you have +read [this page](http://central.sonatype.org/pages/apache-maven.html) on how to +configure GPG and Sonatype account Use the following command to upload artifacts: ``` -$ ./gradlew uploadArchives +$ mvn clean deploy -P release ``` -- cgit v1.2.3