Migrate all jvm compilation options to the new registration style.

Testing Done:
CI passed. Manual verification that flags still work.

Reviewed at https://rbcommons.com/s/twitter/r/1127/
Sync of https://github.com/pantsbuild/pants/commit/e96a19c3afe8079c03442ab7b13158a115532dc5