You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Dieter Vrancken (JIRA)" <ji...@apache.org> on 2014/06/13 17:01:15 UTC

[jira] [Commented] (BUILDR-664) Checkstyle addon extra_dependencies should not include compile/test libs by default

    [ https://issues.apache.org/jira/browse/BUILDR-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030698#comment-14030698 ] 

Dieter Vrancken commented on BUILDR-664:
----------------------------------------

In hindsight, I think it was sub-optimal to empty out extra_dependencies by default. Instead, I believe we should have put the checkstyle dependencies at the front of the checkstyle classpath. Then it would work automatically for everyone. Would you reopen this issue to change the solution?

> Checkstyle addon extra_dependencies should not include compile/test libs by default
> -----------------------------------------------------------------------------------
>
>                 Key: BUILDR-664
>                 URL: https://issues.apache.org/jira/browse/BUILDR-664
>             Project: Buildr
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.4.10
>            Reporter: Dieter Vrancken
>            Assignee: Peter Donald
>            Priority: Minor
>
> The experimental Buildr::Checkstyle addon contains the following method:
>     def extra_dependencies
>         @extra_dependencies ||= [self.project.compile.dependencies, self.project.test.compile.dependencies].flatten
>     end
> Also, checkstyle itself depends on an ancient version of google-collections library.
> We were bitten by this in that our code depends on a newer version of the guava library (successor to google-collections) in which a method used by checkstyle has been removed.
> Since checkstyle does not require access to the runtime dependencies of the code that is checked, I propose to make the default value of @extra_dependencies empty: [].



--
This message was sent by Atlassian JIRA
(v6.2#6252)