license-gradle-plugin
license-gradle-plugin copied to clipboard
Uptodate check fails
Plugin "remembers" previous checks and ignores files that do not contain a license if they matched at any point in the past.
This happens when you change "include".
Example:
Add "include 'test/**/*.java' " Run license task Remove the include Run license task
Second run returns an empty list of files.
Modifying a source file will sometimes reset the uptodate check, inconsistently.
I cannot use it now, since this sporadic behavior means that files have to be checked one by one by hand.
For this we rely on Gradle. The plugin itself is called by gradle when the uptodate check fails, I don't think we influence that.
Op wo 7 nov. 2018 om 02:45 schreef etsz [email protected]:
I cannot use it now, since this sporadic behavior means that files have to be checked one by one by hand.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hierynomus/license-gradle-plugin/issues/165#issuecomment-436473777, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHLo2hTRwAugqpBB7QJyqC83MHho3XMks5usjsygaJpZM4YRnzP .
Is it possible to add a way to force processing all the files matched in the include pattern? Similar to doing a clean build.
I was able to work around this with
./gradlew --rerun-tasks licenseFormat