Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Set Elvis lib as a transitive dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanosFisherman committed Sep 17, 2020
1 parent ff647ac commit c00a2d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Artifact.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ object Artifact {

val ARTIFACT_NAME = "wifiutils"
val ARTIFACT_GROUP = "com.thanosfisherman.wifiutils"
val VERSION_NAME = "1.6.3"
val VERSION_CODE = 20
val VERSION_NAME = "1.6.4"
val VERSION_CODE = 21
val POM_URL = "https://github.com/ThanosFisherman/WifiUtils"
val POM_SCM_URL = "https://github.com/ThanosFisherman/WifiUtils"
val POM_ISSUE_URL = "https://github.com/ThanosFisherman/WifiUtils/issues"
Expand Down
4 changes: 1 addition & 3 deletions buildSrc/src/main/kotlin/DependencyManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ fun DependencyHandler.addAppModuleDependencies() {
AppDependency.getAll().forEach { implementation(it) }
}

fun DependencyHandler.addLibModuleDependencies() {
LibDependency.getAll().forEach { implementation(it) }
}
fun DependencyHandler.getLibModuleDependencies() = LibDependency.getAll()


fun DependencyHandler.addTestDependencies() {
Expand Down
8 changes: 7 additions & 1 deletion wifiutils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ android {

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
addLibModuleDependencies()
getLibModuleDependencies().forEach {
if (it.contains("elvis", true)) {
implementation(it) { isTransitive = true }
} else {
implementation(it)
}
}
addTestDependencies()
}

Expand Down

0 comments on commit c00a2d2

Please sign in to comment.