diff options
author | Allan Wang <me@allanwang.ca> | 2019-06-07 14:46:08 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-06-07 14:46:08 -0400 |
commit | df94b2f706c25514afc447c2cd37ea01dd821cf1 (patch) | |
tree | e77682aaf43699e06246848efceafc688e461196 /buildSrc | |
parent | 1ac55ac5b029d792b2c5a93ef7548d3588c6bab2 (diff) | |
download | kau-df94b2f706c25514afc447c2cd37ea01dd821cf1.tar.gz kau-df94b2f706c25514afc447c2cd37ea01dd821cf1.tar.bz2 kau-df94b2f706c25514afc447c2cd37ea01dd821cf1.zip |
Add short namespace for plugin
Diffstat (limited to 'buildSrc')
-rw-r--r-- | buildSrc/README.md | 24 | ||||
-rw-r--r-- | buildSrc/build.gradle.kts | 2 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/ChangelogGenerator.kt (renamed from buildSrc/src/main/kotlin/ChangelogGenerator.kt) | 2 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Dependencies.kt (renamed from buildSrc/src/main/kotlin/Dependencies.kt) | 2 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Plugins.kt (renamed from buildSrc/src/main/kotlin/Plugins.kt) | 2 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Versions.kt (renamed from buildSrc/src/main/kotlin/Versions.kt) | 2 |
6 files changed, 21 insertions, 13 deletions
diff --git a/buildSrc/README.md b/buildSrc/README.md index 8889675..f79303c 100644 --- a/buildSrc/README.md +++ b/buildSrc/README.md @@ -9,9 +9,9 @@ As a note, this is located under `buildSrc` as it is automatically included when Everything here is used when generating the library, so it's always tested. ## Contents -* [Versions](#versions) -* [Plugins](#plugins) -* [Dependencies](#dependencies) +* [kau.Versions](#versions) +* [kau.Plugins](#plugins) +* [kau.Dependencies](#dependencies) * [Changelog Generator](#changelog-generator) ## Usage @@ -38,9 +38,9 @@ Then where necessary, apply the plugin using apply plugin: 'ca.allanwang.kau' ``` -# Versions +# kau.Versions -> [Versions.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy) +> [kau.Versions.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy) Contains the version code for any external library used in KAU. You are free to use the values through `kau.[tagName]`. @@ -51,26 +51,26 @@ As an example, AppCompat is imported in KAU using api "androidx.appcompat:appcompat:${kau.appcompat}" ``` -# Plugins +# kau.Plugins -> [Plugins.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy) +> [kau.Plugins.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Plugins.groovy) Unfortunately, it seems like you can't use the plugin directly in the buildscript, so this is mainly internal. The plugins data, found using `kauPlugins.[tagName]` contains a collection of useful plugin classpaths. -The versions are taken from `Versions.groovy`, so it is always in sync. +The versions are taken from `kau.Versions.groovy`, so it is always in sync. -# Dependencies +# kau.Dependencies -> [Dependencies.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy) +> [kau.Dependencies.groovy](/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy) Contains the dependency string for common libraries. -You are free to use the values through `Dependencies.[tagName]`. +You are free to use the values through `kau.Dependencies.[tagName]`. As an example, adding junit can be done through ```gradle -testImplementation Dependencies.junit +testImplementation kau.Dependencies.junit ``` # Changelog Generator diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 9bd5e13..89cba29 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -6,5 +6,5 @@ plugins { group = "ca.allanwang" repositories { - mavenCentral() + jcenter() }
\ No newline at end of file diff --git a/buildSrc/src/main/kotlin/ChangelogGenerator.kt b/buildSrc/src/main/kotlin/kau/ChangelogGenerator.kt index 4be3ecf..20e8eef 100644 --- a/buildSrc/src/main/kotlin/ChangelogGenerator.kt +++ b/buildSrc/src/main/kotlin/kau/ChangelogGenerator.kt @@ -1,3 +1,5 @@ +package kau + import groovy.util.Node import groovy.util.XmlParser import org.gradle.api.GradleException diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/kau/Dependencies.kt index 3fd40ed..62c938c 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/kau/Dependencies.kt @@ -1,3 +1,5 @@ +package kau + /** * Some common dependencies, backed by the supplied versions */ diff --git a/buildSrc/src/main/kotlin/Plugins.kt b/buildSrc/src/main/kotlin/kau/Plugins.kt index e321628..cdee364 100644 --- a/buildSrc/src/main/kotlin/Plugins.kt +++ b/buildSrc/src/main/kotlin/kau/Plugins.kt @@ -1,3 +1,5 @@ +package kau + /** * Some common buildscript plugins, backed by the supplied versions */ diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/kau/Versions.kt index 7f4cdca..32db3a5 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/kau/Versions.kt @@ -1,3 +1,5 @@ +package kau + object Versions { const val coreMinSdk = 19 const val minSdk = 21 |