aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-03-20 19:01:05 -0700
committerKristen Kozak <sebright@google.com>2018-03-20 20:14:20 -0700
commite6003ff06947ca1821b4cee4ace7137f7aac199c (patch)
tree86f41ab90044a09c20cf2a4654a933d08f2f6845 /examples
parentcd131566ed13af2dc9814fb73096a741dcdf867a (diff)
downloadopencensus-java-e6003ff06947ca1821b4cee4ace7137f7aac199c.tar.gz
Move the examples/ format check from the build file to the Travis script.
This change simplifies the example build file by removing plugins not necessary to build the project. The new Travis job is under allow_failures, so that contributors aren't required to download and run the tool.
Diffstat (limited to 'examples')
-rw-r--r--examples/build.gradle26
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/build.gradle b/examples/build.gradle
index b42e8e0f..67304cf7 100644
--- a/examples/build.gradle
+++ b/examples/build.gradle
@@ -9,7 +9,6 @@ buildscript {
}
}
dependencies {
- classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
}
}
@@ -17,10 +16,6 @@ buildscript {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
-// Plugins that require java8
-if (JavaVersion.current().isJava8Compatible()) {
- apply plugin: 'com.github.sherter.google-java-format'
-}
repositories {
mavenCentral()
@@ -34,27 +29,6 @@ def opencensusVersion = "0.12.2" // LATEST_OPENCENSUS_RELEASE_VERSION
def grpcVersion = "1.9.0" // CURRENT_GRPC_VERSION
def prometheusVersion = "0.3.0"
-// Google formatter works only on java8.
-if (JavaVersion.current().isJava8Compatible()) {
- googleJavaFormat {
- toolVersion '1.5'
- }
-
- afterEvaluate { // Allow subproject to add more source sets.
- tasks.googleJavaFormat {
- // This skips proto generated files beucasue they are in gen_gradle/src/main/**
- source = "src/main"
- include '**/*.java'
- }
-
- tasks.verifyGoogleJavaFormat {
- // This skips proto generated files beucasue they are in gen_gradle/src/main/**
- source = "src/main"
- include '**/*.java'
- }
- }
-}
-
tasks.withType(JavaCompile) {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'