diff options
author | Hailong Wen <hailongwen@google.com> | 2017-12-08 11:02:18 -0800 |
---|---|---|
committer | Hailong Wen <hailongwen@google.com> | 2017-12-08 11:02:18 -0800 |
commit | a8cb3760eeadf0c5877bab47b0fc6d8412a9c6bb (patch) | |
tree | b5f0ee362549ebb7accb1b432312a576544c2aae /examples | |
parent | cf24e3f3d705ae69408d3d356ba3503c82320329 (diff) | |
download | opencensus-java-a8cb3760eeadf0c5877bab47b0fc6d8412a9c6bb.tar.gz |
Remove unnecessary plugins and script commands; update README commands.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/README.md | 4 | ||||
-rw-r--r-- | examples/build.gradle | 28 |
2 files changed, 2 insertions, 30 deletions
diff --git a/examples/README.md b/examples/README.md index 4144c872..c9e67b9f 100644 --- a/examples/README.md +++ b/examples/README.md @@ -9,12 +9,12 @@ $ ./gradlew installDist ## To run "StatsRunner" example use ``` -$ ./examples/build/install/examples/bin/StatsRunner +$ ./build/install/examples/bin/StatsRunner ``` ## To run "ZPagesTester" ``` -$ ./examples/build/install/examples/bin/ZPagesTester +$ ./build/install/examples/bin/ZPagesTester ``` Available pages: diff --git a/examples/build.gradle b/examples/build.gradle index b1820b66..b9bf232d 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,25 +1,8 @@ description = 'OpenCensus Examples' -buildscript { - repositories { - mavenCentral() - mavenLocal() - maven { - url "https://plugins.gradle.org/m2/" - } - } - dependencies { - classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6" - } -} - apply plugin: "checkstyle" apply plugin: 'idea' apply plugin: 'java' -// Plugins that require java8 -if (JavaVersion.current().isJava8Compatible()) { - apply plugin: 'com.github.sherter.google-java-format' -} repositories { mavenCentral() @@ -41,17 +24,6 @@ checkstyle { configProperties["rootDir"] = file("$rootDir/../") } -// Disable checkstyle if no java8. -checkstyleMain.enabled = JavaVersion.current().isJava8Compatible() -checkstyleTest.enabled = JavaVersion.current().isJava8Compatible() - -// Google formatter works only on java8. -if (JavaVersion.current().isJava8Compatible()) { - googleJavaFormat { - toolVersion '1.5' - } -} - tasks.withType(JavaCompile) { sourceCompatibility = '1.8' targetCompatibility = '1.8' |