Switch to go modules
This commit is contained in:
parent
461954facb
commit
1720059244
763 changed files with 24896 additions and 177398 deletions
36
vendor/github.com/census-instrumentation/opencensus-proto/.gitignore
generated
vendored
36
vendor/github.com/census-instrumentation/opencensus-proto/.gitignore
generated
vendored
|
|
@ -1,36 +0,0 @@
|
|||
# Gradle
|
||||
.gradle
|
||||
build
|
||||
gen_gradle
|
||||
protobuf-gradle-plugin.i*
|
||||
gradle.properties
|
||||
local.properties
|
||||
|
||||
# Bazel
|
||||
bazel-*
|
||||
|
||||
# Maven
|
||||
target
|
||||
|
||||
# IntelliJ IDEA
|
||||
.idea
|
||||
*.iml
|
||||
|
||||
# Eclipse
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
bin
|
||||
|
||||
# OS X
|
||||
.DS_Store
|
||||
|
||||
# Emacs
|
||||
*~
|
||||
\#*\#
|
||||
|
||||
# VS Code
|
||||
.vscode
|
||||
|
||||
# Other
|
||||
TAGS
|
||||
52
vendor/github.com/census-instrumentation/opencensus-proto/.travis.yml
generated
vendored
52
vendor/github.com/census-instrumentation/opencensus-proto/.travis.yml
generated
vendored
|
|
@ -1,52 +0,0 @@
|
|||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- language: java
|
||||
jdk: oraclejdk8
|
||||
env: BUILD=BAZEL
|
||||
|
||||
- language: java
|
||||
jdk: oraclejdk8
|
||||
env: BUILD=GRADLE
|
||||
|
||||
before_install:
|
||||
- case "$BUILD" in
|
||||
"BAZEL")
|
||||
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list ;
|
||||
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - ;
|
||||
sudo apt-get update ;;
|
||||
esac
|
||||
|
||||
install:
|
||||
- case "$BUILD" in
|
||||
"BAZEL")
|
||||
sudo apt-get install bazel ;
|
||||
echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc ;
|
||||
echo "build --experimental_strict_action_env" >> ~/.bazelrc ;
|
||||
bazel version;;
|
||||
esac
|
||||
|
||||
script:
|
||||
- case "$BUILD" in
|
||||
"BAZEL")
|
||||
cd src ;
|
||||
bazel build --show_result=100 ... ;;
|
||||
"GRADLE")
|
||||
./gradlew clean assemble --stacktrace ;
|
||||
./gradlew check --stacktrace ;;
|
||||
*)
|
||||
echo "Missing case $BUILD" ;
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
- $HOME/bazel-cache/
|
||||
26
vendor/github.com/census-instrumentation/opencensus-proto/CONTRIBUTING.md
generated
vendored
26
vendor/github.com/census-instrumentation/opencensus-proto/CONTRIBUTING.md
generated
vendored
|
|
@ -1,26 +0,0 @@
|
|||
# How to submit a bug report
|
||||
|
||||
If you received an error message, please include it and any exceptions.
|
||||
|
||||
We commonly need to know which language you are using (e.g. Java) and what
|
||||
platform you are on:
|
||||
* Operating system (i.e., ```uname -a```)
|
||||
|
||||
# How to contribute
|
||||
|
||||
We definitely welcome patches and contributions to Census! Here are some
|
||||
guideline and information about how to do so.
|
||||
|
||||
## Before getting started
|
||||
|
||||
In order to protect both you and ourselves, you will need to sign the
|
||||
[Contributor License Agreement](https://cla.developers.google.com/clas).
|
||||
|
||||
We follow the [Google Proto Style Guide](
|
||||
https://developers.google.com/protocol-buffers/docs/style).
|
||||
|
||||
## Proposing changes
|
||||
|
||||
Make sure that `bazel build :all` completes successfully without any new warnings.
|
||||
Then create a Pull Request with your changes. When the changes are accepted, they
|
||||
will be merged or cherry-picked by a Census core developer.
|
||||
89
vendor/github.com/census-instrumentation/opencensus-proto/README.md
generated
vendored
89
vendor/github.com/census-instrumentation/opencensus-proto/README.md
generated
vendored
|
|
@ -1,89 +0,0 @@
|
|||
OpenCensus Proto - Language Independent Interface Types For OpenCensus
|
||||
===============================================================
|
||||
[![Gitter chat][gitter-image]][gitter-url]
|
||||
[![Build Status][travis-image]][travis-url]
|
||||
[![Maven Central][maven-image]][maven-url]
|
||||
[![Javadocs][javadoc-image]][javadoc-url]
|
||||
[![GoDoc][godoc-image]][godoc-url]
|
||||
|
||||
Census provides a framework to define and collect stats against metrics and to
|
||||
break those stats down across user-defined dimensions.
|
||||
|
||||
The Census framework is natively available in many languages (e.g. C++, Go,
|
||||
and Java). The API interface types are defined using protos to ensure
|
||||
consistency and interoperability for the different implementations.
|
||||
|
||||
## Quickstart
|
||||
|
||||
### Install to Go
|
||||
|
||||
```bash
|
||||
$ go get -u github.com/census-instrumentation/opencensus-proto
|
||||
```
|
||||
|
||||
In most cases you should depend on the gen-go files directly. If you are
|
||||
building with Bazel, there are also go_proto_library build rules available.
|
||||
See [PR/132](https://github.com/census-instrumentation/opencensus-proto/pull/132)
|
||||
for details. However, please note that Bazel doesn't generate the final
|
||||
artifacts.
|
||||
|
||||
### Add the dependencies to your Java project
|
||||
|
||||
For Maven add to `pom.xml`:
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>io.opencensus</groupId>
|
||||
<artifactId>opencensus-proto</artifactId>
|
||||
<version>0.1.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
For Gradle add to dependencies:
|
||||
```gradle
|
||||
compile 'io.opencensus:opencensus-proto:0.1.0'
|
||||
```
|
||||
|
||||
[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-proto.svg?branch=master
|
||||
[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-proto
|
||||
[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-proto/badge.svg
|
||||
[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-proto
|
||||
[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
|
||||
[gitter-url]: https://gitter.im/census-instrumentation/lobby
|
||||
[javadoc-image]: https://www.javadoc.io/badge/io.opencensus/opencensus-proto.svg
|
||||
[javadoc-url]: https://www.javadoc.io/doc/io.opencensus/opencensus-proto
|
||||
[godoc-image]: https://godoc.org/github.com/census-instrumentation/opencensus-proto?status.svg
|
||||
[godoc-url]: https://godoc.org/github.com/census-instrumentation/opencensus-proto
|
||||
|
||||
### Add the dependencies to Bazel project
|
||||
|
||||
In WORKSPACE, add:
|
||||
```
|
||||
git_repository(
|
||||
name = "io_opencensus_proto",
|
||||
strip_prefix = "src",
|
||||
tag = "v0.1.0", # CURRENT_OPENCENSUS_PROTO_VERSION
|
||||
remote = "https://github.com/census-instrumentation/opencensus-proto",
|
||||
)
|
||||
```
|
||||
or
|
||||
|
||||
```
|
||||
http_archive(
|
||||
name = "io_opencensus_proto",
|
||||
strip_prefix = "opencensus-proto-master/src",
|
||||
urls = ["https://github.com/census-instrumentation/opencensus-proto/archive/master.zip"],
|
||||
)
|
||||
```
|
||||
|
||||
In BUILD.bazel:
|
||||
```bazel
|
||||
proto_library(
|
||||
name = "foo_proto",
|
||||
srcs = ["foo.proto"],
|
||||
deps = [
|
||||
"@io_opencensus_proto//opencensus/proto/metrics/v1:metrics_proto",
|
||||
"@io_opencensus_proto//opencensus/proto/trace/v1:trace_proto",
|
||||
# etc.
|
||||
],
|
||||
)
|
||||
```
|
||||
190
vendor/github.com/census-instrumentation/opencensus-proto/RELEASING.md
generated
vendored
190
vendor/github.com/census-instrumentation/opencensus-proto/RELEASING.md
generated
vendored
|
|
@ -1,190 +0,0 @@
|
|||
# How to Create a Release of OpenCensus Proto (for Maintainers Only)
|
||||
|
||||
## Build Environments
|
||||
|
||||
We re-generate gen-go files and deploy jars to Maven Central under the following systems:
|
||||
|
||||
- Ubuntu 14.04
|
||||
|
||||
Other systems may also work, but we haven't verified them.
|
||||
|
||||
## Release Go files
|
||||
|
||||
To generate the Go files from protos, you'll need to install protoc, protoc-gen-go and grpc-gateway plugins first.
|
||||
Follow the instructions [here](http://google.github.io/proto-lens/installing-protoc.html),
|
||||
[here](https://github.com/golang/protobuf#installation) and [here](https://github.com/grpc-ecosystem/grpc-gateway#installation).
|
||||
|
||||
Then run the following commands to re-generate the gen-go files:
|
||||
|
||||
```bash
|
||||
$ cd $(go env GOPATH)/src/github.com/census-instrumentation/opencensus-proto
|
||||
$ git checkout -b update-gen-go
|
||||
$ rm -rf gen-go
|
||||
$ cd src
|
||||
$ ./mkgogen.sh
|
||||
$ git add -A
|
||||
$ git commit -m "Update gen-go files."
|
||||
```
|
||||
|
||||
Go through PR review and merge the changes to GitHub.
|
||||
|
||||
## Tagging the Release
|
||||
|
||||
Our release branches follow the naming convention of `v<major>.<minor>.x`, while the tags include the
|
||||
patch version `v<major>.<minor>.<patch>`. For example, the same branch `v0.4.x` would be used to create
|
||||
all `v0.4` tags (e.g. `v0.4.0`, `v0.4.1`).
|
||||
|
||||
In this section upstream repository refers to the main opencensus-proto github
|
||||
repository.
|
||||
|
||||
Before any push to the upstream repository you need to create a [personal access
|
||||
token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
|
||||
|
||||
1. Create the release branch and push it to GitHub:
|
||||
|
||||
```bash
|
||||
$ MAJOR=0 MINOR=4 PATCH=0 # Set appropriately for new release
|
||||
$ VERSION_FILES=(
|
||||
build.gradle
|
||||
pom.xml
|
||||
)
|
||||
$ git checkout -b v$MAJOR.$MINOR.x master
|
||||
$ git push upstream v$MAJOR.$MINOR.x
|
||||
```
|
||||
|
||||
2. Enable branch protection for the new branch, if you have admin access.
|
||||
Otherwise, let someone with admin access know that there is a new release
|
||||
branch.
|
||||
|
||||
- Open the branch protection settings for the new branch, by following
|
||||
[Github's instructions](https://help.github.com/articles/configuring-protected-branches/).
|
||||
- Copy the settings from a previous branch, i.e., check
|
||||
- `Protect this branch`
|
||||
- `Require pull request reviews before merging`
|
||||
- `Require status checks to pass before merging`
|
||||
- `Include administrators`
|
||||
|
||||
Enable the following required status checks:
|
||||
- `cla/google`
|
||||
- `continuous-integration/travis-ci`
|
||||
- Uncheck everything else.
|
||||
- Click "Save changes".
|
||||
|
||||
3. For `master` branch:
|
||||
|
||||
- Change root build files to the next minor snapshot (e.g.
|
||||
`0.5.0-SNAPSHOT`).
|
||||
|
||||
```bash
|
||||
$ git checkout -b bump-version master
|
||||
# Change version to next minor (and keep -SNAPSHOT)
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_OPENCENSUS_PROTO_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
|
||||
```
|
||||
|
||||
- Go through PR review and push the master branch to GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
$ git merge --ff-only bump-version
|
||||
$ git push upstream master
|
||||
```
|
||||
|
||||
4. For `vMajor.Minor.x` branch:
|
||||
|
||||
- Change root build files to remove "-SNAPSHOT" for the next release
|
||||
version (e.g. `0.4.0`). Commit the result and make a tag:
|
||||
|
||||
```bash
|
||||
$ git checkout -b release v$MAJOR.$MINOR.x
|
||||
# Change version to remove -SNAPSHOT
|
||||
$ sed -i 's/-SNAPSHOT\(.*CURRENT_OPENCENSUS_PROTO_VERSION\)/\1/' "${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
|
||||
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
|
||||
```
|
||||
|
||||
- Change root build files to the next snapshot version (e.g.
|
||||
`0.4.1-SNAPSHOT`). Commit the result:
|
||||
|
||||
```bash
|
||||
# Change version to next patch and add -SNAPSHOT
|
||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_OPENCENSUS_PROTO_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
|
||||
"${VERSION_FILES[@]}"
|
||||
$ ./gradlew build
|
||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
|
||||
```
|
||||
|
||||
- Go through PR review and push the release tag and updated release branch
|
||||
to GitHub:
|
||||
|
||||
```bash
|
||||
$ git checkout v$MAJOR.$MINOR.x
|
||||
$ git merge --ff-only release
|
||||
$ git push upstream v$MAJOR.$MINOR.$PATCH
|
||||
$ git push upstream v$MAJOR.$MINOR.x
|
||||
```
|
||||
|
||||
## Release Java Jar
|
||||
|
||||
Deployment to Maven Central (or the snapshot repo) is for all of the artifacts
|
||||
from the project.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
If you haven't done already, please follow the instructions
|
||||
[here](https://github.com/census-instrumentation/opencensus-java/blob/master/RELEASING.md#prerequisites)
|
||||
to set up the OSSRH (OSS Repository Hosting) account and signing keys. This is required for releasing
|
||||
to Maven Central.
|
||||
|
||||
### Branch
|
||||
|
||||
Before building/deploying, be sure to switch to the appropriate tag. The tag
|
||||
must reference a commit that has been pushed to the main repository, i.e., has
|
||||
gone through code review. For the current release use:
|
||||
|
||||
```bash
|
||||
$ git checkout -b v$MAJOR.$MINOR.$PATCH tags/v$MAJOR.$MINOR.$PATCH
|
||||
```
|
||||
|
||||
### Initial Deployment
|
||||
|
||||
The following command will build the whole project and upload it to Maven
|
||||
Central. Parallel building [is not safe during
|
||||
uploadArchives](https://issues.gradle.org/browse/GRADLE-3420).
|
||||
|
||||
```bash
|
||||
$ ./gradlew clean build && ./gradlew -Dorg.gradle.parallel=false uploadArchives
|
||||
```
|
||||
|
||||
If the version has the `-SNAPSHOT` suffix, the artifacts will automatically go
|
||||
to the snapshot repository. Otherwise it's a release deployment and the
|
||||
artifacts will go to a staging repository.
|
||||
|
||||
When deploying a Release, the deployment will create [a new staging
|
||||
repository](https://oss.sonatype.org/#stagingRepositories). You'll need to look
|
||||
up the ID in the OSSRH UI (usually in the form of `opencensus-*`).
|
||||
|
||||
### Releasing on Maven Central
|
||||
|
||||
Once all of the artifacts have been pushed to the staging repository, the
|
||||
repository must first be `closed`, which will trigger several sanity checks on
|
||||
the repository. If this completes successfully, the repository can then be
|
||||
`released`, which will begin the process of pushing the new artifacts to Maven
|
||||
Central (the staging repository will be destroyed in the process). You can see
|
||||
the complete process for releasing to Maven Central on the [OSSRH
|
||||
site](http://central.sonatype.org/pages/releasing-the-deployment.html).
|
||||
|
||||
## Announcement
|
||||
|
||||
Once deployment is done, go to Github [release
|
||||
page](https://github.com/census-instrumentation/opencensus-proto/releases), press
|
||||
`Draft a new release` to write release notes about the new release.
|
||||
|
||||
You can use `git log upstream/v$MAJOR.$((MINOR-1)).x..upstream/v$MAJOR.$MINOR.x --graph --first-parent`
|
||||
or the Github [compare tool](https://github.com/census-instrumentation/opencensus-proto/compare/)
|
||||
to view a summary of all commits since last release as a reference.
|
||||
|
||||
Please pick major or important user-visible changes only.
|
||||
171
vendor/github.com/census-instrumentation/opencensus-proto/build.gradle
generated
vendored
171
vendor/github.com/census-instrumentation/opencensus-proto/build.gradle
generated
vendored
|
|
@ -1,171 +0,0 @@
|
|||
description = 'Opencensus Proto'
|
||||
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'com.google.protobuf'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: "signing"
|
||||
|
||||
group = "io.opencensus"
|
||||
version = "0.3.0" // CURRENT_OPENCENSUS_PROTO_VERSION
|
||||
|
||||
sourceCompatibility = 1.6
|
||||
targetCompatibility = 1.6
|
||||
|
||||
repositories {
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
|
||||
jar.manifest {
|
||||
attributes('Implementation-Title': name,
|
||||
'Implementation-Version': version,
|
||||
'Built-By': System.getProperty('user.name'),
|
||||
'Built-JDK': System.getProperty('java.version'),
|
||||
'Source-Compatibility': sourceCompatibility,
|
||||
'Target-Compatibility': targetCompatibility)
|
||||
}
|
||||
|
||||
def protobufVersion = '3.5.1'
|
||||
def protocVersion = '3.5.1'
|
||||
def grpcVersion = "1.14.0" // CURRENT_GRPC_VERSION
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.6"
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
proto {
|
||||
srcDir 'src'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.google.protobuf:protobuf-java:${protobufVersion}",
|
||||
"io.grpc:grpc-protobuf:${grpcVersion}",
|
||||
"io.grpc:grpc-stub:${grpcVersion}"
|
||||
|
||||
compileOnly "javax.annotation:javax.annotation-api:1.2"
|
||||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
// The artifact spec for the Protobuf Compiler
|
||||
artifact = "com.google.protobuf:protoc:${protocVersion}"
|
||||
}
|
||||
plugins {
|
||||
grpc {
|
||||
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all()*.plugins {
|
||||
grpc {}
|
||||
}
|
||||
ofSourceSet('main')
|
||||
}
|
||||
|
||||
generatedFilesBaseDir = "$projectDir/gen_gradle/src"
|
||||
}
|
||||
|
||||
// Disable all java warnings for proto generated files build
|
||||
compileJava {
|
||||
options.compilerArgs += ["-Xlint:none"]
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
clean {
|
||||
delete protobuf.generatedFilesBaseDir
|
||||
}
|
||||
|
||||
// IntelliJ complains that the generated classes are not found, ask IntelliJ to include the
|
||||
// generated Java directories as source folders.
|
||||
idea {
|
||||
module {
|
||||
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java");
|
||||
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/grpc");
|
||||
// If you have additional sourceSets and/or codegen plugins, add all of them
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
required false
|
||||
sign configurations.archives
|
||||
}
|
||||
|
||||
javadoc.source = "$projectDir/gen_gradle/src"
|
||||
|
||||
javadoc.options {
|
||||
encoding = 'UTF-8'
|
||||
links 'https://docs.oracle.com/javase/8/docs/api/'
|
||||
}
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
classifier = 'javadoc'
|
||||
from javadoc
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives javadocJar, sourcesJar
|
||||
}
|
||||
|
||||
uploadArchives {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
||||
|
||||
def configureAuth = {
|
||||
if (rootProject.hasProperty('ossrhUsername') && rootProject.hasProperty('ossrhPassword')) {
|
||||
authentication(userName:rootProject.ossrhUsername, password: rootProject.ossrhPassword)
|
||||
}
|
||||
}
|
||||
|
||||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/", configureAuth)
|
||||
|
||||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/", configureAuth)
|
||||
|
||||
pom.project {
|
||||
name "OpenCensus"
|
||||
packaging 'jar'
|
||||
description project.description
|
||||
url 'https://github.com/census-instrumentation/opencensus-proto'
|
||||
|
||||
scm {
|
||||
connection 'scm:svn:https://github.com/census-instrumentation/opencensus-proto'
|
||||
developerConnection 'scm:git:git@github.com/census-instrumentation/opencensus-proto'
|
||||
url 'https://github.com/census-instrumentation/opencensus-proto'
|
||||
}
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name 'The Apache License, Version 2.0'
|
||||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||
}
|
||||
}
|
||||
|
||||
developers {
|
||||
developer {
|
||||
id 'io.opencensus'
|
||||
name 'OpenCensus Contributors'
|
||||
email 'census-developers@googlegroups.com'
|
||||
url 'opencensus.io'
|
||||
// https://issues.gradle.org/browse/GRADLE-2719
|
||||
organization = 'OpenCensus Authors'
|
||||
organizationUrl 'https://www.opencensus.io'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
172
vendor/github.com/census-instrumentation/opencensus-proto/gradlew
generated
vendored
172
vendor/github.com/census-instrumentation/opencensus-proto/gradlew
generated
vendored
|
|
@ -1,172 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=$(save "$@")
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||
cd "$(dirname "$0")"
|
||||
fi
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
84
vendor/github.com/census-instrumentation/opencensus-proto/gradlew.bat
generated
vendored
84
vendor/github.com/census-instrumentation/opencensus-proto/gradlew.bat
generated
vendored
|
|
@ -1,84 +0,0 @@
|
|||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windows variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
1
vendor/github.com/census-instrumentation/opencensus-proto/settings.gradle
generated
vendored
1
vendor/github.com/census-instrumentation/opencensus-proto/settings.gradle
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
rootProject.name = "opencensus-proto"
|
||||
Loading…
Add table
Add a link
Reference in a new issue