javacc / javaccPlugin

A JavaCC plugin for Gradle
MIT License
33 stars 16 forks source link

Adding SpotBugs as plugin causes JavaCC compile failure #45

Closed thpr closed 6 years ago

thpr commented 6 years ago

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

thpr commented 6 years ago

Ha, sorry, wrong window - meant to send this to the spotbugs folks