Skip to content

Commit

Permalink
Reproduce #9897
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Jul 8, 2019
1 parent 457f6a2 commit 5099efc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Expand Up @@ -102,6 +102,9 @@ abstract class AbstractSmokeTest extends Specification {

// https://plugins.gradle.org/plugin/org.gradle.playframework
static playframework = "0.6"

// https://plugins.gradle.org/plugin/net.ltgt.errorprone
static errorProne = "0.8.1"
}

static class Versions implements Iterable<String> {
Expand Down
Expand Up @@ -384,4 +384,42 @@ class ThirdPartyPluginsSmokeTest extends AbstractSmokeTest {
file('build/reports/spotbugs').isDirectory()
}

@Ignore
@Issue("https://github.com/gradle/gradle/issues/9897")
def 'errorprone plugin'() {
given:
buildFile << """
plugins {
id('java')
id("net.ltgt.errorprone") version "${TestedVersions.errorProne}"
}
${mavenCentralRepository()}
dependencies {
errorprone("com.google.errorprone:error_prone_core:2.3.3")
}
tasks.withType(JavaCompile).configureEach {
options.fork = true
options.errorprone {
check("DoubleBraceInitialization", net.ltgt.gradle.errorprone.CheckSeverity.ERROR)
}
}
"""
file("src/main/java/Test.java") << """
import java.util.HashSet;
import java.util.Set;
public class Test {
public static void main(String[] args) {
}
}
"""
expect:
runner('compileJava').forwardOutput().build()
}

}

0 comments on commit 5099efc

Please sign in to comment.