use Gradle for building the commons-runtime library

Change-Id: I7fddce98de5c8bfda562e46af2934a48b277a462