Refactor: Support gradle.