Skip to content

Commit

Permalink
Compile the samples as tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl committed Mar 26, 2024
1 parent 8a7029d commit 85bf8fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Expand Up @@ -17,8 +17,17 @@ apply from: "gradle/integration-test.gradle"
apply from: "gradle/format.gradle"
apply from: "gradle/publish.gradle"

sourceSets {
test {
java {
srcDirs = ['samples']
}
}
}

dependencies {
errorprone "com.google.errorprone:error_prone_core:${errorproneVersion}"
testImplementation 'com.google.guava:guava:31.1-jre'
}

java {
Expand All @@ -36,6 +45,12 @@ java {
}
}

compileTestJava {
options.errorprone.errorproneArgs = [
'-XepExcludedPaths:.*/samples/.*'
]
}

javadoc {
options.encoding = 'UTF-8'
}
Expand Down

0 comments on commit 85bf8fc

Please sign in to comment.