Remove unused invalidate_for method and unused extra_data variable.

As discussed in https://rbcommons.com/s/twitter/r/808/ we are removing the unused extra_data variable and invalidate_for.

Testing Done:
Added an integration test to ensure java compile with 6 and then 7 produces two different artifacts.

Reviewed at https://rbcommons.com/s/twitter/r/849/