license-gradle-plugin icon indicating copy to clipboard operation
license-gradle-plugin copied to clipboard

Uptodate check fails

Open etsz opened this issue 7 years ago • 4 comments
trafficstars

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.

etsz avatar Nov 07 '18 01:11 etsz

I cannot use it now, since this sporadic behavior means that files have to be checked one by one by hand.

etsz avatar Nov 07 '18 01:11 etsz

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 .

hierynomus avatar Nov 07 '18 13:11 hierynomus

Is it possible to add a way to force processing all the files matched in the include pattern? Similar to doing a clean build.

etsz avatar Feb 08 '19 06:02 etsz

I was able to work around this with ./gradlew --rerun-tasks licenseFormat

kgeis avatar May 17 '19 19:05 kgeis