diff options
author | Allan Wang <me@allanwang.ca> | 2019-07-02 23:22:11 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-07-02 23:22:11 -0700 |
commit | 5a107bcb768fa1e7fb110ba65e22e49b3b004eed (patch) | |
tree | 08d2214e1d1801ce2b731e7db00112c6015e8550 /buildSrc/src/main/kotlin/FrostPlugin.kt | |
parent | 648a89d79fd26e717cde0ea58dff8a1a90d89475 (diff) | |
download | frost-5a107bcb768fa1e7fb110ba65e22e49b3b004eed.tar.gz frost-5a107bcb768fa1e7fb110ba65e22e49b3b004eed.tar.bz2 frost-5a107bcb768fa1e7fb110ba65e22e49b3b004eed.zip |
Convert install task to kotlin using delegation
Diffstat (limited to 'buildSrc/src/main/kotlin/FrostPlugin.kt')
-rw-r--r-- | buildSrc/src/main/kotlin/FrostPlugin.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/buildSrc/src/main/kotlin/FrostPlugin.kt b/buildSrc/src/main/kotlin/FrostPlugin.kt index 8e640f04..0fd4ea9d 100644 --- a/buildSrc/src/main/kotlin/FrostPlugin.kt +++ b/buildSrc/src/main/kotlin/FrostPlugin.kt @@ -17,16 +17,14 @@ class FrostPlugin : Plugin<Project> { } project.gradle.taskGraph.whenReady { if (!project.plugins.hasPlugin("java-base")) { - throw IllegalArgumentException( - "Frost plugin can't be applied without Android or Java or Kotlin plugin." - ) + throw IllegalArgumentException("Frost plugin can't be applied without Android or Java or Kotlin plugin.") } } } private fun Project.applyWebGenPlugin() { setupNode() -// tasks.create(WebGenInstallTask.NAME, WebGenInstallTask::class) + tasks.create(WebGenInstallTask.NAME, WebGenInstallTask::class) } private fun Project.setupNode() { |