DependencyHandlerExtensions
This Gradle plugin helps you easily do multiple add
s on your DependencyHandler
.
Download ![maven-central](https://camo.githubusercontent.com/ca6000a293897c95f9284e43840717d20f0fb3f31069cc0d351dc29b408cdfb6/68747470733a2f2f696d672e736869656c64732e696f2f6d6176656e2d63656e7472616c2f762f6c616e642e73756e6762696e2e646570656e64656e63792e68616e646c65722e657874656e73696f6e732f646570656e64656e63792d68616e646c65722d657874656e73696f6e732d706c7567696e)
plugins {
id("land.sungbin.dependency.handler.extensions") version "$version"
}
or.. (if you want implementation)
dependencies {
implementation("land.sungbin.dependency.handler.extensions:dependency-handler-extensions-plugin:${version}")
}
Usage
dependencies {
classpaths(.., .., ..)
apis(.., .., ..)
kapts(.., .., ..)
ksps(.., .., ..)
lintCheckss(.., .., ..)
compileOnlys(.., .., ..)
implementations(.., .., ..)
debugImplementations(.., .., ..)
testImplementations(.., .., ..)
testRuntimeOnlys(.., .., ..)
androidTestImplementations(.., .., ..)
}
Real-World example
// source: https://github.com/duckie-team/duckie-android/blob/c10ea3ca2b0bccda7069c02786e6a83eeaacd9d2/util-viewmodel/build.gradle.kts#L18-L27
dependencies {
implementations(libs.kotlin.coroutines, projects.utilKotlin)
testImplementations(libs.test.turbine, libs.test.coroutines)
}
License
This project is licensed under the MIT License. Please refer to the LICENSE file for details.