Update main build.gradle for export to use OpenCensus. (#374)
diff --git a/RELEASING.md b/RELEASING.md
index dffbb24..c46725e 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -78,7 +78,7 @@
```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_INSTRUMENTATION_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
+ $ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_OPENCENSUS_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
"${VERSION_FILES[@]}"
$ ./gradlew build
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
@@ -100,7 +100,7 @@
```bash
$ git checkout -b release v$MAJOR.$MINOR.x
# Change version to remove -SNAPSHOT
- $ sed -i 's/-SNAPSHOT\(.*CURRENT_INSTRUMENTATION_VERSION\)/\1/' "${VERSION_FILES[@]}"
+ $ sed -i 's/-SNAPSHOT\(.*CURRENT_OPENCENSUS_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"
@@ -111,7 +111,7 @@
```bash
# Change version to next patch and add -SNAPSHOT
- $ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_INSTRUMENTATION_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
+ $ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_OPENCENSUS_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
"${VERSION_FILES[@]}"
$ ./gradlew build
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
diff --git a/build.gradle b/build.gradle
index 23cab39..b410b3a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -30,8 +30,8 @@
apply plugin: "net.ltgt.errorprone"
}
- group = "com.google.instrumentation"
- version = "0.5.0-SNAPSHOT" // CURRENT_INSTRUMENTATION_VERSION
+ group = "io.opencensus"
+ version = "0.5.0-SNAPSHOT" // CURRENT_OPENCENSUS_VERSION
sourceCompatibility = 1.6
targetCompatibility = 1.6
@@ -206,18 +206,15 @@
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/", configureAuth)
pom.project {
- name "Instrumentation"
+ name "OpenCensus"
packaging 'jar'
- // Add a map with all the project.name -> artifactId when we
- // are going to upload more artifacts.
- artifactId jar.baseName
description project.description
- url 'https://github.com/google/instrumentation-java'
+ url 'https://github.com/census-instrumentation/instrumentation-java'
scm {
- connection 'scm:svn:https://github.com/google/instrumentation-java'
- developerConnection 'scm:git:git@github.com/google/instrumentation-java'
- url 'https://github.com/google/instrumentation-java'
+ connection 'scm:svn:https://github.com/census-instrumentation/instrumentation-java'
+ developerConnection 'scm:git:git@github.com/census-instrumentation/instrumentation-java'
+ url 'https://github.com/census-instrumentation/instrumentation-java'
}
licenses {
@@ -229,9 +226,10 @@
developers {
developer {
- id 'com.google.instrumentation'
- name 'Instrumentation Developers'
- email 'instrumentation-developers@googlegroups.com'
+ id 'io.opencensus'
+ name 'OpenCensus Contributors'
+ email 'opencensus-io@googlegroups.com'
+ url 'opencensus.io'
// https://issues.gradle.org/browse/GRADLE-2719
organization = 'Google, Inc.'
organizationUrl 'https://www.google.com'
@@ -242,7 +240,7 @@
}
}
// For the moment we upload only the artifact for the API
- uploadArchives.onlyIf { name == 'core'}
+ uploadArchives.onlyIf { name == 'opencensus-api' || name == 'opencensus-impl-core' || name == 'opencensus-impl-lite' || name == 'opencensus-impl' || name == 'opencensus-testing'}
// At a test failure, log the stack trace to the console so that we don't
// have to open the HTML in a browser.