Skip to content

Commit

Permalink
Deps: Migrated wiremock to Version Catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Jul 5, 2024
1 parent d1aed0d commit 9b552a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,13 @@ dependencies {
exclude module: 'recyclerview-v7'
}
androidTestImplementation(libs.androidx.test.espresso.accessibility)
androidTestImplementation("com.github.tomakehurst:wiremock:$wiremockVersion") {
androidTestImplementation(libs.wiremock) {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'asm', module: 'asm'
exclude group: 'org.json', module: 'json'
}
androidTestImplementation "org.apache.httpcomponents:httpclient-android:$wiremockHttpClientVersion"
androidTestImplementation libs.wiremock.httpclient.android
androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.test.rules
androidTestImplementation libs.androidx.test.ext.junit
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ ext {
// android test
screengrabVersion = '2.1.1'
squareupMockWebServerVersion = '4.12.0'
wiremockVersion = '2.26.3'
wiremockHttpClientVersion = '4.3.5.1'

// other
androidDesugarVersion = '2.0.4'
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ mockitoAndroid = '4.5.1'
mockitoKotlin = '4.1.0'
soLoader = '0.10.5'
wordPressPersistentEditText = '1.0.2'
wiremock = '2.26.3'
wiremockHttpClient = '4.3.5.1'

[libraries]
android-appUpdate = { group = "com.google.android.play", name = "app-update", version.ref = "googlePlayAppUpdate" }
Expand Down Expand Up @@ -111,6 +113,8 @@ lottie = { group = "com.airbnb.android", name = "lottie", version.ref ="lottie"
lottie-compose = { group = "com.airbnb.android", name = "lottie-compose", version.ref ="lottie" }
mockito-android = { group = "org.mockito", name = "mockito-android", version.ref ="mockitoAndroid" }
mockito-kotlin = { group = "org.mockito.kotlin", name = "mockito-kotlin", version.ref ="mockitoKotlin" }
wiremock = { group = "com.github.tomakehurst", name = "wiremock", version.ref ="wiremock" }
wiremock-httpclient-android = { group = "org.apache.httpcomponents", name = "httpclient-android", version.ref ="wiremockHttpClient" }
wordPress-persistentEditText = { group = "org.wordpress", name = "persistentedittext", version.ref = "wordPressPersistentEditText" }

[plugins]
Expand Down
4 changes: 2 additions & 2 deletions libs/mocks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ android {
}

dependencies {
implementation("com.github.tomakehurst:wiremock:$wiremockVersion") {
implementation(libs.wiremock) {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'asm', module: 'asm'
exclude group: 'org.json', module: 'json'
}
implementation "org.apache.httpcomponents:httpclient-android:$wiremockHttpClientVersion"
implementation libs.wiremock.httpclient.android
}

0 comments on commit 9b552a5

Please sign in to comment.