aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-01 12:09:43 -0700
committerAllan Wang <me@allanwang.ca>2019-07-01 12:09:43 -0700
commit1ae6a8c455bbe40ad247a29848432a4fe00459f7 (patch)
tree35643c1bd4e29e019a0f786cbe4cd9f60cdf1d66 /buildSrc/src/main
parent9b2f9443e5472f3ef47d6d5085524ed3255a3102 (diff)
downloadkau-1ae6a8c455bbe40ad247a29848432a4fe00459f7.tar.gz
kau-1ae6a8c455bbe40ad247a29848432a4fe00459f7.tar.bz2
kau-1ae6a8c455bbe40ad247a29848432a4fe00459f7.zip
Add kau to plugin dependency class, resolves #211
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r--buildSrc/src/main/kotlin/kau/Dependencies.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/kau/Dependencies.kt b/buildSrc/src/main/kotlin/kau/Dependencies.kt
index a6268ae..f6d07ec 100644
--- a/buildSrc/src/main/kotlin/kau/Dependencies.kt
+++ b/buildSrc/src/main/kotlin/kau/Dependencies.kt
@@ -5,6 +5,12 @@ package kau
*/
object Dependencies {
@JvmStatic
+ fun kau(version: String) = "ca.allanwang:kau:$version"
+
+ @JvmStatic
+ fun kau(type: String, version: String) = "ca.allanwang.kau:$type:$version"
+
+ @JvmStatic
fun kotlin(type: String) = "org.jetbrains.kotlin:kotlin-$type:${Versions.kotlin}"
@JvmField
@@ -44,6 +50,7 @@ object Dependencies {
const val fastAdapter = "com.mikepenz:fastadapter:${Versions.fastAdapter}"
@JvmStatic
fun fastAdapter(type: String) = "com.mikepenz:fastadapter-$type:${Versions.fastAdapter}"
+
@JvmField
val fastAdapterCommons = fastAdapter("commons")