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

Checkstyle classpath {null} #22

Open
suraj-afrogleap opened this issue May 22, 2017 · 3 comments
Open

Checkstyle classpath {null} #22

suraj-afrogleap opened this issue May 22, 2017 · 3 comments

Comments

@suraj-afrogleap
Copy link

When updating the gradle wrapper to 3.5, checkstyle fails.

@TheDancerCodes
Copy link

@suraj-afrogleap
Any luck finding a solution for this?

@suraj-afrogleap
Copy link
Author

suraj-afrogleap commented Feb 26, 2018

@TheDancerCodes Ended up using checkstyle version 5.9.

checkstyle {
toolVersion = '5.9'
ignoreFailures = true
configFile file("${project.rootDir}/resources/quality/checkstyle/checkstyle.xml")
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/resources/quality/checkstyle/suppressions.xml").absolutePath
}

task checkstyle(type: Checkstyle) {
source 'src'
include '/*.java'
exclude '
/gen/'
exclude '
/test/'
exclude '
/androidTest/'
exclude '
/R.java'
exclude '**/BuildConfig.java'

classpath = files()

}

@TheDancerCodes
Copy link

@suraj-afrogleap It worked! Thanks a lot.

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

2 participants