Use new Gradle API, support multiple outputs API