Switch to Gradle as the main build system.

Attach a jar for non-Gradle Android users.