tbroyer/gradle-errorprone-plugin-v0.0.x

Compile task is up-to-date although error prone version did change

epeee opened this issue · 3 comments

epeee commented

Changing the error_prone_core version should end up in compile tasks to be executed.

E.g. let's assume I use

    dependencies {
        errorprone 'com.google.errorprone:error_prone_core:2.3.0'
    }

and execute ./gradlew build.

Once I update error_prone_core version to a new version

    dependencies {
        errorprone 'com.google.errorprone:error_prone_core:2.3.1'
    }

the compile tasks still are up-to-date.

I can confirm that the scenario described does work as expected while using gradle-errorprone-javacplugin-plugin.

Thanks for the report, I've been suspecting for a while but never took the time to confirm.

Workaround should be

tasks.withType(JavaCompile) {
  inputs.files configurations.errorprone
}

(at least that's how I'm planning to fix it)

I released v0.0.15 with the fix.

epeee commented

👍, thank you!