aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/groovy/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-12-24 01:17:31 -0500
committerGitHub <noreply@github.com>2018-12-24 01:17:31 -0500
commitfb90c4a4ab23f2fd246c29c1dde4d6e155a2e38b (patch)
treecc6d67461b6caa256043b9482f7646831d528a08 /buildSrc/src/main/groovy/ca
parenta380adea1052d39f23c9c4d432a9380ce347d6c4 (diff)
downloadkau-fb90c4a4ab23f2fd246c29c1dde4d6e155a2e38b.tar.gz
kau-fb90c4a4ab23f2fd246c29c1dde4d6e155a2e38b.tar.bz2
kau-fb90c4a4ab23f2fd246c29c1dde4d6e155a2e38b.zip
Enhancement/ktlint (#179)
* Add spotless dependency * Apply ktlint * Add license headers
Diffstat (limited to 'buildSrc/src/main/groovy/ca')
-rw-r--r--buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy1
-rw-r--r--buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy3
2 files changed, 4 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy b/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy
index c1ecba6..89182f1 100644
--- a/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy
+++ b/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy
@@ -14,4 +14,5 @@ class Plugins {
def dexCount = "com.getkeepsafe.dexcount:dexcount-gradle-plugin:${Versions.dexCountPlugin}"
static
def gitVersion = "gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:${Versions.gitVersionPlugin}"
+ static def spotless = "com.diffplug.spotless:spotless-plugin-gradle:${Versions.spotless}"
} \ No newline at end of file
diff --git a/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy b/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
index 637ae68..a85fe97 100644
--- a/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
+++ b/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
@@ -63,6 +63,9 @@ class Versions {
// https://mvnrepository.com/artifact/androidx.test/rules?repo=google
static def testRules = '1.1.1'
+ // https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md
+ static def spotless = '3.17.0'
+
// https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
static def gradlePlugin = '3.2.1'
static def mavenPlugin = '2.1'