|
|
10 years ago | |
|---|---|---|
| .. | ||
| gradle | 11 years ago | |
| README.md | 10 years ago | |
| build-protoc.sh | 11 years ago | |
| build.gradle | 10 years ago | |
| gradlew | 11 years ago | |
| gradlew.bat | 11 years ago | |
| settings.gradle | 11 years ago | |
protoc is the compiler for .proto files. It generates language bindings
for the messages and/or RPC services from .proto files.
Because protoc is a native executable, the scripts under this directory
build and publish a protoc executable (a.k.a. artifact) to Maven
repositories.
The name of a published protoc artifact is in the following format:
protoc-<version>-<os>-<arch>.exe, e.g., protoc-3.0.0-alpha-3-windows-x86_64.exe.
The following command will install the protoc artifact to your local Maven repository.
$ ./gradlew install
Before you can upload artifacts to Maven Central repository, you must have set
up your account with OSSRH,
and have generated a PGP key
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
Use the following command to upload artifacts:
$ ./gradlew uploadArchives