-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded dependencies and moved all version definitions to the "libs.…
…versions.toml" file.
- Loading branch information
Adil Hussain
committed
Jan 26, 2024
1 parent
c18598e
commit 2b08fb3
Showing
9 changed files
with
68 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask | ||
|
||
plugins { | ||
alias(libs.plugins.android.library) apply false | ||
alias(libs.plugins.benmanes.versions) | ||
alias(libs.plugins.jetbrains.kotlin.android) apply false | ||
} | ||
|
||
tasks.wrapper { | ||
gradleVersion = "8.5" | ||
} | ||
|
||
// Alter the default behaviour of the "com.github.ben-manes.versions" plugin | ||
tasks.withType<DependencyUpdatesTask> { | ||
rejectVersionIf { isNonStable(candidate.version) } | ||
} | ||
|
||
/** | ||
* @param version The version name to evaluate. | ||
* @return true if and only if the given version name represents a non-stable version. | ||
*/ | ||
fun isNonStable(version: String): Boolean { | ||
val versionInLowercase = version.lowercase() | ||
|
||
return setOf("-alpha", "-beta", "-rc").any { versionInLowercase.contains(it) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[versions] | ||
junit5 = "5.10.1" | ||
|
||
[libraries] | ||
appcompat = { group = "androidx.appcompat", name = "appcompat", version = "1.6.1" } | ||
annotation = { group = "androidx.annotation", name = "annotation", version = "1.7.1" } | ||
hamcrest-core = { group = "org.hamcrest", name = "hamcrest-core", version = "2.2" } | ||
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit5" } | ||
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit5" } | ||
junit-jupiter-params = { group = "org.junit.jupiter", name = "junit-jupiter-params", version.ref = "junit5" } | ||
recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version = "1.3.2" } | ||
test-ext-junit = { group = "androidx.test.ext", name = "junit", version = "1.1.5" } | ||
test-runner = { group = "androidx.test", name = "runner", version = "1.5.2" } | ||
test-rules = { group = "androidx.test", name = "rules", version = "1.5.0" } | ||
|
||
[plugins] | ||
android-library = { id = "com.android.library", version = "8.2.2" } | ||
benmanes-versions = { id = "com.github.ben-manes.versions", version = "0.51.0" } | ||
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version = "1.9.22" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,4 @@ dependencyResolutionManagement { | |
} | ||
} | ||
|
||
rootProject.name = 'android-utils' | ||
include ':library' | ||
include(":library") |