[ 
https://issues.apache.org/jira/browse/BEAM-3697?focusedWorklogId=96288&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-96288
 ]

ASF GitHub Bot logged work on BEAM-3697:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Apr/18 00:57
            Start Date: 28/Apr/18 00:57
    Worklog Time Spent: 10m 
      Work Description: kennknowles commented on a change in pull request 
#5161: [BEAM-3697] Add errorprone to Gradle build
URL: https://github.com/apache/beam/pull/5161#discussion_r184833690
 
 

 ##########
 File path: build_rules.gradle
 ##########
 @@ -489,6 +491,15 @@ ext.applyJavaNature = {
     }
   }
 
+  // Enable errorprone, not by default right now
+  if (configuration.enableErrorProne) {
+    apply plugin: 'net.ltgt.errorprone'
+    dependencies {
+      errorprone 'com.google.guava:guava:22.0'
 
 Review comment:
   Our version of Guava has incompatible classes. I can't recall if you get a 
method not found or a class not found if you omit this. It depends on the 
version of errorprone you choose. I wanted to prioritize recent errorprone for 
better checks, while our Guava is pinned way in the past.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 96288)
    Time Spent: 3h  (was: 2h 50m)

> Add errorprone to gradle builds
> -------------------------------
>
>                 Key: BEAM-3697
>                 URL: https://issues.apache.org/jira/browse/BEAM-3697
>             Project: Beam
>          Issue Type: Sub-task
>          Components: build-system
>            Reporter: Eugene Kirpichov
>            Assignee: Kenneth Knowles
>            Priority: Major
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> [http://errorprone.info/] is a good static checker that covers a number of 
> bugs not covered by FindBugs or Checkstyle. We use it internally at Google 
> and, when run on the Beam codebase, it occasionally uncovers issues missed 
> during PR review process.
>  
> It has Maven and Gradle plugins:
> [http://errorprone.info/docs/installation]
> [https://github.com/tbroyer/gradle-errorprone-plugin]
>  
> It would be good to integrate it into our Maven and Gradle builds.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to