diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-01-24 23:49:37 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-01-24 23:49:37 +0100 |
| commit | c5773e2906c3c53a004b63a0b8d0eedee80498e2 (patch) | |
| tree | 70acb8c0608a5b387c60bf86da54de9e8f48df4e | |
| parent | c8b66e4ba111638de97db80f543989d61f6dddc4 (diff) | |
Bump gradle plugin 0.3.2 and add support for initscript plugin
| -rw-r--r-- | README | 22 | ||||
| -rw-r--r-- | build.gradle | 2 | ||||
| -rw-r--r-- | src/main/groovy/FlycheckAndroidExperimentalInitPlugin.groovy | 13 |
3 files changed, 35 insertions, 2 deletions
@@ -12,6 +12,9 @@ Add the below to your Emacs init file somewhere: 'java-mode-hook '(lambda () (require 'flycheck-android-experimental))) += Then you have two choices, the most direct is to include flycheck += plugin directly to your project: + Then, in your root build.gradle, add: buildscript { repositories { @@ -30,9 +33,26 @@ allprojects { apply plugin: 'org.thejk.flycheck-android-experimental' } += Or you can apply it to your gradle init script, applying the task += to *all* projects + +Put in $HOME/.gradle/init.gradle or $HOME/.gradle/init.d/flycheck-android.gradle: +initscript { + repositories { + maven { + url uri('http://www.spawned.biz/the_jk/repo') + } + } + dependencies { + classpath 'org.thejk:flycheck-android-experimental:0.3.2' + } +} + +apply plugin: org.thejk.FlycheckAndroidExperimentalInitPlugin + That should be it. -If you use checkstyle, you can expand the java-mode-hook: += If you use checkstyle, you can expand the java-mode-hook: (add-to-list 'java-mode-hook '(lambda () diff --git a/build.gradle b/build.gradle index 69f770a..0d7c7f1 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ dependencies { apply plugin: 'maven' group = 'org.thejk' -version = '0.1' +version = '0.3.2' uploadArchives { repositories { diff --git a/src/main/groovy/FlycheckAndroidExperimentalInitPlugin.groovy b/src/main/groovy/FlycheckAndroidExperimentalInitPlugin.groovy new file mode 100644 index 0000000..ad44335 --- /dev/null +++ b/src/main/groovy/FlycheckAndroidExperimentalInitPlugin.groovy @@ -0,0 +1,13 @@ +package org.thejk + +import org.gradle.api.Plugin +import org.gradle.api.invocation.Gradle + +class FlycheckAndroidExperimentalInitPlugin implements Plugin<Gradle> { + void apply(Gradle gradle) { + gradle.allprojects { project -> + project.task('flycheckAndroidJava', + type: FlycheckAndroidJavaTask) + } + } +} |
