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

Adding SpotBugs as plugin causes JavaCC compile failure #612

Closed
thpr opened this issue Apr 16, 2018 · 2 comments
Closed

Adding SpotBugs as plugin causes JavaCC compile failure #612

thpr opened this issue Apr 16, 2018 · 2 comments

Comments

@thpr
Copy link

thpr commented Apr 16, 2018

Add the following line to the plugins {} section in Gradle
id "com.github.spotbugs" version '1.6.1'

No other changes in the gradle file, now a new task is generated: compileJavaccJava

This new task attempts to compile items not related to compileJavacc, and which are from directories that have external library dependencies that are not comprehended by the javacc source set:
sourceSets {
...
javacc {
java {
srcDirs 'code/src/javacc'
}
}
...
}

nor by:

compileJavacc {
inputDirectory = file('code/src/javacc/')
outputDirectory = file('code/src/java/')
}

The result is a compile failure.

The full repository with the change in place (as well as some additional spotbugs configuration that is valuable to us but not necessary to reproduce the error) can be found here: https://github.com/thpr/pcgen-formula/tree/SpotBugs

@KengoTODA
Copy link
Member

@KengoTODA
Copy link
Member

Let me close this issue, please create another one in spotbugs-gradle-plugin project.

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