apply from: './gradle/dependencies.gradle' buildscript { apply from: './gradle/dependencies.gradle' repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin classpath 'com.diffplug.spotless:spotless-plugin-gradle:' + versions.spotlessPlugin classpath 'com.novoda:bintray-release:' + versions.bintrayRelease } } allprojects { repositories { jcenter() google() } buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } } apply plugin: "com.diffplug.gradle.spotless" spotless { java { target "**/*.java" trimTrailingWhitespace() removeUnusedImports() googleJavaFormat() endWithNewline() } } }