Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Findbugs classpath configuration #25

Open
ksarmalkar opened this issue Feb 20, 2014 · 2 comments
Open

Findbugs classpath configuration #25

ksarmalkar opened this issue Feb 20, 2014 · 2 comments

Comments

@ksarmalkar
Copy link

For me the findbugs configuration specifically this line

classpath = files( project.configurations.compile.asPath )

is causing issues, I'm trying with android gradle plugin v0.8+ and gradle v1.10

@kyhule
Copy link

kyhule commented Oct 29, 2014

I am having the same issue. Gradle is complaining it "Could not find com.android.support:support-v13:20.0.0" but I am using the support library with no issues in my project prior to this like.

@vanniktech
Copy link

This works for me with Android Studio 1.0.1

apply plugin: 'findbugs'

// android configuration

findbugs {
    sourceSets = []
    ignoreFailures = true
}

task findbugs(type: FindBugs, dependsOn: assembleDebug) {

    description 'Run findbugs'
    group 'verification'

    classes = fileTree('build/intermediates/classes/debug/')
    source = fileTree('src/main/java')
    classpath = files()

    effort = 'max'

    excludeFilter = file("./config/findbugs/exclude.xml")

    reports {
        xml.enabled = true
        html.enabled = false
    }
}

check.doLast {
    project.tasks.getByName("findbugs").execute()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants