aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml1
-rw-r--r--examples/README.md7
-rw-r--r--examples/build.gradle81
-rw-r--r--examples/buildscripts/checkstyle.license15
-rw-r--r--examples/buildscripts/checkstyle.xml233
-rw-r--r--examples/gradle/errorprone/experimental_errors27
-rw-r--r--examples/gradle/errorprone/experimental_suggestions25
-rw-r--r--examples/gradle/errorprone/experimental_warnings23
-rw-r--r--examples/gradle/errorprone/warnings76
-rwxr-xr-xscripts/travis_script3
10 files changed, 17 insertions, 474 deletions
diff --git a/appveyor.yml b/appveyor.yml
index e71311b3..34493a90 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -7,3 +7,4 @@ build_script:
# integration testing. Also see https://www.appveyor.com/docs/build-environment/#java.
- set JAVA_HOMES=C:\Program Files\Java\jdk1.6.0\jre;C:\Program Files\Java\jdk1.7.0\jre;C:\Program Files\Java\jdk1.8.0\jre
- gradlew.bat clean assemble check --stacktrace
+ - pushd examples && gradlew.bat clean assemble check --stacktrace && popd
diff --git a/examples/README.md b/examples/README.md
index eb37cd17..741e5cd8 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -6,7 +6,12 @@
$ ./gradlew installDist
```
-* Remember to change `opencensusVersion` in `build.gradle` to a released version you want to use.
+Note: If you are building a SNAPSHOT instead of a release, please install the opencensus-java main project to your local repo first:
+
+```
+$ cd .. && gradlew install
+```
+
## To run "StatsRunner" example use
```
diff --git a/examples/build.gradle b/examples/build.gradle
index fa3eb587..7f9b3ad8 100644
--- a/examples/build.gradle
+++ b/examples/build.gradle
@@ -9,27 +9,15 @@ buildscript {
}
}
dependencies {
- classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.2'
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
- classpath "net.ltgt.gradle:gradle-apt-plugin:0.10"
- classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6"
}
}
-// Display the version report using: ./gradlew dependencyUpdates
-// Also see https://github.com/ben-manes/gradle-versions-plugin.
-apply plugin: 'com.github.ben-manes.versions'
apply plugin: "checkstyle"
-apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'java'
-apply plugin: "signing"
-apply plugin: "jacoco"
-// The plugin only has an effect if a signature is specified
-apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'findbugs'
-apply plugin: 'net.ltgt.apt'
// Plugins that require java8
if (JavaVersion.current().isJava8Compatible()) {
apply plugin: "net.ltgt.errorprone"
@@ -44,10 +32,7 @@ repositories {
group = "io.opencensus"
version = "0.11.0-SNAPSHOT"
-// change to the version you want to use.
-def opencensusVersion = "0.11.0-SNAPSHOT" // CURRENT_OPENCENSUS_VERSION
-
-[compileJava, compileTestJava].each() {
+compileJava {
// We suppress the "processing" warning as suggested in
// https://groups.google.com/forum/#!topic/bazel-discuss/_R3A9TJSoPM
it.options.compilerArgs += ["-Xlint:all", "-Xlint:-try", "-Xlint:-processing"]
@@ -83,27 +68,6 @@ def opencensusVersion = "0.11.0-SNAPSHOT" // CURRENT_OPENCENSUS_VERSION
}
}
-compileTestJava {
- // serialVersionUID is basically guaranteed to be useless in tests
- options.compilerArgs += ["-Xlint:-serial"]
- // It undeprecates DoubleSubject.isEqualTo(Double).
- options.compilerArgs += ["-Xlint:-deprecation"]
-}
-
-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)
-}
-
-javadoc.options {
- encoding = 'UTF-8'
- links 'https://docs.oracle.com/javase/8/docs/api/'
-}
-
ext {
findBugsVersion = '3.0.1'
}
@@ -126,13 +90,13 @@ findbugsMain {
findbugsTest.enabled = false
checkstyle {
- configFile = file("$rootDir/buildscripts/checkstyle.xml")
+ configFile = file("$rootDir/../buildscripts/checkstyle.xml")
toolVersion = "8.0"
ignoreFailures = false
if (rootProject.hasProperty("checkstyle.ignoreFailures")) {
ignoreFailures = rootProject.properties["checkstyle.ignoreFailures"].toBoolean()
}
- configProperties["rootDir"] = rootDir
+ configProperties["rootDir"] = file("$rootDir/../")
}
// Disable checkstyle if no java8.
@@ -146,48 +110,17 @@ if (JavaVersion.current().isJava8Compatible()) {
}
}
-signing {
- required false
- sign configurations.archives
-}
-
-task javadocJar(type: Jar) {
- classifier = 'javadoc'
- from javadoc
-}
-
-task sourcesJar(type: Jar) {
- classifier = 'sources'
- from sourceSets.main.allSource
-}
-
-artifacts {
- archives javadocJar, sourcesJar
-}
-
-// At a test failure, log the stack trace to the console so that we don't
-// have to open the HTML in a browser.
-test {
- testLogging {
- exceptionFormat = 'full'
- showExceptions true
- showCauses true
- showStackTraces true
- }
- maxHeapSize = '1500m'
-}
-
tasks.withType(JavaCompile) {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
dependencies {
- compile "io.opencensus:opencensus-api:${opencensusVersion}",
- "io.opencensus:opencensus-contrib-zpages:${opencensusVersion}",
- "io.opencensus:opencensus-exporter-trace-logging:${opencensusVersion}"
+ compile "io.opencensus:opencensus-api:${version}",
+ "io.opencensus:opencensus-contrib-zpages:${version}",
+ "io.opencensus:opencensus-exporter-trace-logging:${version}"
- runtime "io.opencensus:opencensus-impl:${opencensusVersion}"
+ runtime "io.opencensus:opencensus-impl:${version}"
}
// Provide convenience executables for trying out the examples.
diff --git a/examples/buildscripts/checkstyle.license b/examples/buildscripts/checkstyle.license
deleted file mode 100644
index 27bac1a2..00000000
--- a/examples/buildscripts/checkstyle.license
+++ /dev/null
@@ -1,15 +0,0 @@
-^/\*$
-^ \* Copyright \d\d\d\d(-\d\d)?, OpenCensus Authors$
-^ \*$
-^ \* Licensed under the Apache License, Version 2.0 \(the "License"\);$
-^ \* you may not use this file except in compliance with the License\.$
-^ \* You may obtain a copy of the License at$
-^ \*$
-^ \* http://www.apache.org/licenses/LICENSE-2\.0$
-^ \*$
-^ \* Unless required by applicable law or agreed to in writing, software$
-^ \* distributed under the License is distributed on an "AS IS" BASIS,$
-^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$
-^ \* See the License for the specific language governing permissions and$
-^ \* limitations under the License\.$
-^ \*/$ \ No newline at end of file
diff --git a/examples/buildscripts/checkstyle.xml b/examples/buildscripts/checkstyle.xml
deleted file mode 100644
index fdea0c5e..00000000
--- a/examples/buildscripts/checkstyle.xml
+++ /dev/null
@@ -1,233 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
-
-<!--
- Checkstyle configuration that checks the Google coding conventions from Google Java Style
- that can be found at https://google.github.io/styleguide/javaguide.html.
-
- Checkstyle is very configurable. Be sure to read the documentation at
- http://checkstyle.sf.net (or in your downloaded distribution).
-
- To completely disable a check, just comment it out or delete it from the file.
-
- Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
- -->
-
-<module name = "Checker">
- <property name="charset" value="UTF-8"/>
-
- <property name="severity" value="error"/>
-
-
- <module name="RegexpHeader">
- <property name="headerFile" value="${rootDir}/buildscripts/checkstyle.license"/>
- <property name="fileExtensions" value="java"/>
- </module>
-
- <property name="fileExtensions" value="java, properties, xml"/>
- <!-- Checks for whitespace -->
- <!-- See http://checkstyle.sf.net/config_whitespace.html -->
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <module name="TreeWalker">
- <module name="OuterTypeFilename"/>
- <module name="IllegalTokenText">
- <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
- <property name="format" value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
- <property name="message" value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
- </module>
- <module name="AvoidEscapedUnicodeCharacters">
- <property name="allowEscapesForControlCharacters" value="true"/>
- <property name="allowByTailComment" value="true"/>
- <property name="allowNonPrintableEscapes" value="true"/>
- </module>
- <module name="LineLength">
- <property name="max" value="100"/>
- <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
- </module>
- <module name="AvoidStarImport"/>
- <module name="RedundantImport"/>
- <module name="OneTopLevelClass"/>
- <module name="NoLineWrap"/>
- <module name="EmptyBlock">
- <property name="option" value="TEXT"/>
- <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
- </module>
- <module name="NeedBraces"/>
- <module name="LeftCurly">
- <property name="maxLineLength" value="100"/>
- </module>
- <module name="RightCurly">
- <property name="id" value="RightCurlySame"/>
- <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
- </module>
- <module name="RightCurly">
- <property name="id" value="RightCurlyAlone"/>
- <property name="option" value="alone"/>
- <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
- </module>
- <module name="WhitespaceAround">
- <property name="allowEmptyConstructors" value="true"/>
- <property name="allowEmptyMethods" value="true"/>
- <property name="allowEmptyTypes" value="true"/>
- <property name="allowEmptyLoops" value="true"/>
- <message key="ws.notFollowed"
- value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
- <message key="ws.notPreceded"
- value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
- </module>
- <module name="OneStatementPerLine"/>
- <module name="MultipleVariableDeclarations"/>
- <module name="ArrayTypeStyle"/>
- <!-- This rule conflicts with Error Prone's exhaustiveness checking. -->
- <!-- <module name="MissingSwitchDefault"/> -->
- <module name="FallThrough"/>
- <module name="UpperEll"/>
- <module name="ModifierOrder"/>
- <module name="EmptyLineSeparator">
- <property name="allowNoEmptyLineBetweenFields" value="true"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapDot"/>
- <property name="tokens" value="DOT"/>
- <property name="option" value="nl"/>
- </module>
- <module name="SeparatorWrap">
- <property name="id" value="SeparatorWrapComma"/>
- <property name="tokens" value="COMMA"/>
- <property name="option" value="EOL"/>
- </module>
- <module name="PackageName">
- <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
- <message key="name.invalidPattern"
- value="Package name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="TypeName">
- <message key="name.invalidPattern"
- value="Type name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="MemberName">
- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
- <message key="name.invalidPattern"
- value="Member name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="ParameterName">
- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
- <message key="name.invalidPattern"
- value="Parameter name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="CatchParameterName">
- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
- <message key="name.invalidPattern"
- value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="LocalVariableName">
- <property name="tokens" value="VARIABLE_DEF"/>
- <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
- <message key="name.invalidPattern"
- value="Local variable name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="ClassTypeParameterName">
- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
- <message key="name.invalidPattern"
- value="Class type name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="MethodTypeParameterName">
- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
- <message key="name.invalidPattern"
- value="Method type name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="InterfaceTypeParameterName">
- <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
- <message key="name.invalidPattern"
- value="Interface type name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="NoFinalizer"/>
- <module name="GenericWhitespace">
- <message key="ws.followed"
- value="GenericWhitespace ''{0}'' is followed by whitespace."/>
- <message key="ws.preceded"
- value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
- <message key="ws.illegalFollow"
- value="GenericWhitespace ''{0}'' should followed by whitespace."/>
- <message key="ws.notPreceded"
- value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
- </module>
- <module name="Indentation">
- <property name="basicOffset" value="2"/>
- <property name="braceAdjustment" value="0"/>
- <property name="caseIndent" value="2"/>
- <property name="throwsIndent" value="4"/>
- <property name="lineWrappingIndentation" value="4"/>
- <property name="arrayInitIndent" value="2"/>
- </module>
- <module name="AbbreviationAsWordInName">
- <property name="ignoreFinal" value="false"/>
- <property name="allowedAbbreviationLength" value="1"/>
- </module>
- <module name="OverloadMethodsDeclarationOrder"/>
- <module name="VariableDeclarationUsageDistance"/>
- <module name="CustomImportOrder">
- <property name="sortImportsInGroupAlphabetically" value="true"/>
- <property name="separateLineBetweenGroups" value="true"/>
- <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
- </module>
- <module name="MethodParamPad"/>
- <module name="ParenPad"/>
- <module name="OperatorWrap">
- <property name="option" value="NL"/>
- <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
- </module>
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationMostCases"/>
- <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
- </module>
- <module name="AnnotationLocation">
- <property name="id" value="AnnotationLocationVariables"/>
- <property name="tokens" value="VARIABLE_DEF"/>
- <property name="allowSamelineMultipleAnnotations" value="true"/>
- </module>
- <module name="NonEmptyAtclauseDescription"/>
- <module name="JavadocTagContinuationIndentation"/>
- <module name="SummaryJavadoc">
- <property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
- </module>
- <module name="JavadocParagraph"/>
- <module name="AtclauseOrder">
- <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
- <property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
- </module>
- <module name="JavadocMethod">
- <property name="scope" value="public"/>
- <property name="allowMissingParamTags" value="true"/>
- <property name="allowMissingThrowsTags" value="true"/>
- <property name="allowMissingReturnTag" value="true"/>
- <property name="minLineCount" value="2"/>
- <!-- Too restrictive for tests -->
- <!-- <property name="allowedAnnotations" value="Override, Test"/-->
- <property name="allowedAnnotations" value="Override, Test, Before, After, BeforeClass, AfterClass, Setup, TearDown"/>
- <property name="allowThrowsTagsForSubclasses" value="true"/>
- </module>
- <module name="MethodName">
- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
- <message key="name.invalidPattern"
- value="Method name ''{0}'' must match pattern ''{1}''."/>
- </module>
- <module name="SingleLineJavadoc">
- <!-- Wrong interpretation of the style guide; -->
- <!-- <property name="ignoreInlineTags" value="false"/-->
- </module>
- <module name="EmptyCatchBlock">
- <property name="exceptionVariableName" value="expected"/>
- </module>
- <module name="CommentsIndentation"/>
- <module name="FileContentsHolder"/>
- <module name="SuppressWarningsHolder"/>
- </module>
- <module name="SuppressionCommentFilter"/>
- <module name="SuppressWarningsFilter"/>
-</module>
diff --git a/examples/gradle/errorprone/experimental_errors b/examples/gradle/errorprone/experimental_errors
deleted file mode 100644
index 5ce6e181..00000000
--- a/examples/gradle/errorprone/experimental_errors
+++ /dev/null
@@ -1,27 +0,0 @@
-errorProneExperimentalErrors = \
--Xep:AssistedInjectAndInjectOnSameConstructor:ERROR,\
--Xep:AutoFactoryAtInject:ERROR,\
--Xep:ClassName:ERROR,\
--Xep:ComparisonContractViolated:ERROR,\
--Xep:DepAnn:ERROR,\
--Xep:DivZero:ERROR,\
--Xep:EmptyIf:ERROR,\
--Xep:FuzzyEqualsShouldNotBeUsedInEqualsMethod:ERROR,\
--Xep:InjectInvalidTargetingOnScopingAnnotation:ERROR,\
--Xep:InjectMoreThanOneQualifier:ERROR,\
--Xep:InjectScopeAnnotationOnInterfaceOrAbstractClass:ERROR,\
--Xep:InjectScopeOrQualifierAnnotationRetention:ERROR,\
--Xep:InjectedConstructorAnnotations:ERROR,\
--Xep:InsecureCryptoUsage:ERROR,\
--Xep:IterablePathParameter:ERROR,\
--Xep:JMockTestWithoutRunWithOrRuleAnnotation:ERROR,\
--Xep:JavaxInjectOnFinalField:ERROR,\
--Xep:LockMethodChecker:ERROR,\
--Xep:LongLiteralLowerCaseSuffix:ERROR,\
--Xep:NoAllocation:ERROR,\
--Xep:NumericEquality:ERROR,\
--Xep:ParameterPackage:ERROR,\
--Xep:ProtoStringFieldReferenceEquality:ERROR,\
--Xep:QualifierOrScopeOnInjectMethod:ERROR,\
--Xep:StaticOrDefaultInterfaceMethod:ERROR,\
--Xep:UnlockMethod:ERROR
diff --git a/examples/gradle/errorprone/experimental_suggestions b/examples/gradle/errorprone/experimental_suggestions
deleted file mode 100644
index 1330b843..00000000
--- a/examples/gradle/errorprone/experimental_suggestions
+++ /dev/null
@@ -1,25 +0,0 @@
-# FieldMissingNullable is turned off due to
-# https://github.com/google/error-prone/issues/823.
-
-errorProneExperimentalSuggestions = \
--Xep:ConstantField:ERROR,\
--Xep:EmptySetMultibindingContributions:ERROR,\
--Xep:FieldMissingNullable:OFF,\
--Xep:MethodCanBeStatic:ERROR,\
--Xep:MixedArrayDimensions:ERROR,\
--Xep:MultiVariableDeclaration:ERROR,\
--Xep:MultipleTopLevelClasses:ERROR,\
--Xep:MultipleUnaryOperatorsInMethodCall:ERROR,\
--Xep:PackageLocation:ERROR,\
--Xep:ParameterComment:ERROR,\
--Xep:ParameterNotNullable:ERROR,\
--Xep:PrivateConstructorForNoninstantiableModuleTest:ERROR,\
--Xep:PrivateConstructorForUtilityClass:ERROR,\
--Xep:RemoveUnusedImports:ERROR,\
--Xep:ReturnMissingNullable:ERROR,\
--Xep:ThrowsUncheckedException:ERROR,\
--Xep:UngroupedOverloads:ERROR,\
--Xep:UnnecessarySetDefault:ERROR,\
--Xep:UnnecessaryStaticImport:ERROR,\
--Xep:UseBinds:ERROR,\
--Xep:WildcardImport:ERROR
diff --git a/examples/gradle/errorprone/experimental_warnings b/examples/gradle/errorprone/experimental_warnings
deleted file mode 100644
index b5a7df2b..00000000
--- a/examples/gradle/errorprone/experimental_warnings
+++ /dev/null
@@ -1,23 +0,0 @@
-errorProneExperimentalWarnings = \
--Xep:AssertFalse:ERROR,\
--Xep:AssistedInjectAndInjectOnConstructors:ERROR,\
--Xep:BigDecimalLiteralDouble:ERROR,\
--Xep:BindingToUnqualifiedCommonType:ERROR,\
--Xep:ConstructorInvokesOverridable:ERROR,\
--Xep:ConstructorLeaksThis:ERROR,\
--Xep:EmptyTopLevelDeclaration:ERROR,\
--Xep:ExpectedExceptionChecker:ERROR,\
--Xep:HardCodedSdCardPath:ERROR,\
--Xep:InconsistentOverloads:ERROR,\
--Xep:MissingDefault:ERROR,\
--Xep:MutableMethodReturnType:ERROR,\
--Xep:NonCanonicalStaticMemberImport:ERROR,\
--Xep:PrimitiveArrayPassedToVarargsMethod:ERROR,\
--Xep:ProvidesFix:ERROR,\
--Xep:QualifierWithTypeUse:ERROR,\
--Xep:RedundantThrows:ERROR,\
--Xep:StaticQualifiedUsingExpression:ERROR,\
--Xep:StringEquality:ERROR,\
--Xep:TestExceptionChecker:ERROR,\
--Xep:UnnecessaryDefaultInEnumSwitch:ERROR,\
--Xep:Var:OFF
diff --git a/examples/gradle/errorprone/warnings b/examples/gradle/errorprone/warnings
deleted file mode 100644
index da7302dd..00000000
--- a/examples/gradle/errorprone/warnings
+++ /dev/null
@@ -1,76 +0,0 @@
-errorProneWarnings = \
--Xep:AmbiguousMethodReference:ERROR,\
--Xep:ArgumentSelectionDefectChecker:ERROR,\
--Xep:AssertEqualsArgumentOrderChecker:ERROR,\
--Xep:AssertionFailureIgnored:ERROR,\
--Xep:BadAnnotationImplementation:ERROR,\
--Xep:BadComparable:ERROR,\
--Xep:BoxedPrimitiveConstructor:ERROR,\
--Xep:CannotMockFinalClass:ERROR,\
--Xep:CanonicalDuration:ERROR,\
--Xep:ClassCanBeStatic:ERROR,\
--Xep:ClassNewInstance:ERROR,\
--Xep:CollectionToArraySafeParameter:ERROR,\
--Xep:CollectorShouldNotUseState:ERROR,\
--Xep:ComparableAndComparator:ERROR,\
--Xep:DefaultCharset:ERROR,\
--Xep:DoubleCheckedLocking:ERROR,\
--Xep:EqualsHashCode:ERROR,\
--Xep:EqualsIncompatibleType:ERROR,\
--Xep:Finally:ERROR,\
--Xep:FloatingPointLiteralPrecision:ERROR,\
--Xep:FragmentInjection:ERROR,\
--Xep:FragmentNotInstantiable:ERROR,\
--Xep:FunctionalInterfaceClash:ERROR,\
--Xep:FutureReturnValueIgnored:ERROR,\
--Xep:GetClassOnEnum:ERROR,\
--Xep:ImmutableAnnotationChecker:ERROR,\
--Xep:ImmutableEnumChecker:ERROR,\
--Xep:IncompatibleModifiers:ERROR,\
--Xep:IncrementInForLoopAndHeader:ERROR,\
--Xep:InjectOnConstructorOfAbstractClass:ERROR,\
--Xep:InputStreamSlowMultibyteRead:ERROR,\
--Xep:InstanceOfAndCastMatchWrongType:ERROR,\
--Xep:IntLongMath:ERROR,\
--Xep:IterableAndIterator:ERROR,\
--Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR,\
--Xep:JUnit4ClassUsedInJUnit3:ERROR,\
--Xep:JUnitAmbiguousTestClass:ERROR,\
--Xep:JavaLangClash:ERROR,\
--Xep:JdkObsolete:ERROR,\
--Xep:LogicalAssignment:ERROR,\
--Xep:MissingFail:ERROR,\
--Xep:MissingOverride:ERROR,\
--Xep:MultipleParallelOrSequentialCalls:ERROR,\
--Xep:MutableConstantField:ERROR,\
--Xep:NamedParameters:ERROR,\
--Xep:NarrowingCompoundAssignment:WARN,\
--Xep:NestedInstanceOfConditions:ERROR,\
--Xep:NonAtomicVolatileUpdate:ERROR,\
--Xep:NonOverridingEquals:ERROR,\
--Xep:NullableConstructor:ERROR,\
--Xep:NullablePrimitive:ERROR,\
--Xep:NullableVoid:ERROR,\
--Xep:OperatorPrecedence:ERROR,\
--Xep:OptionalNotPresent:ERROR,\
--Xep:OverrideThrowableToString:ERROR,\
--Xep:Overrides:ERROR,\
--Xep:OverridesGuiceInjectableMethod:ERROR,\
--Xep:ParameterName:ERROR,\
--Xep:PreconditionsInvalidPlaceholder:ERROR,\
--Xep:ProtoFieldPreconditionsCheckNotNull:ERROR,\
--Xep:ReferenceEquality:ERROR,\
--Xep:RequiredModifiers:ERROR,\
--Xep:ShortCircuitBoolean:ERROR,\
--Xep:SimpleDateFormatConstant:ERROR,\
--Xep:StaticGuardedByInstance:ERROR,\
--Xep:SynchronizeOnNonFinalField:ERROR,\
--Xep:ThreadJoinLoop:ERROR,\
--Xep:TruthConstantAsserts:ERROR,\
--Xep:TypeParameterShadowing:ERROR,\
--Xep:TypeParameterUnusedInFormals:ERROR,\
--Xep:URLEqualsHashCode:ERROR,\
--Xep:UnsynchronizedOverridesSynchronized:ERROR,\
--Xep:UseCorrectAssertInTests:ERROR,\
--Xep:WaitNotInLoop:ERROR,\
--Xep:WakelockReleasedDangerously:ERROR
diff --git a/scripts/travis_script b/scripts/travis_script
index f39b7ee0..3744626a 100755
--- a/scripts/travis_script
+++ b/scripts/travis_script
@@ -21,6 +21,7 @@ case "$TASK" in
./gradlew clean assemble --stacktrace
./gradlew check :opencensus-all:jacocoTestReport
./gradlew verGJF
+ pushd examples && ./gradlew clean assemble verGJF --stacktrace && popd
;;
"openjdk7")
# "./gradlew classes testClasses" is a workaround for
@@ -29,6 +30,7 @@ case "$TASK" in
JAVA_HOME="$(jdk_switcher home openjdk8)" ./gradlew classes testClasses
./gradlew clean assemble --stacktrace
./gradlew check
+ pushd examples && ./gradlew clean assemble check --stacktrace && popd
;;
*)
echo "Unknown JDK version $TRAVIS_JDK_VERSION"
@@ -41,6 +43,7 @@ case "$TASK" in
# https://docs.travis-ci.com/user/reference/osx/#JDK-and-OS-X
./gradlew clean assemble --stacktrace
./gradlew check
+ pushd examples && ./gradlew clean assemble check --stacktrace && popd
;;
*)
echo "Unknown OS name $TRAVIS_OS_NAME"