Sentry too

This commit is contained in:
Jesse Wilson
2025-07-02 13:36:56 -04:00
parent 7cb5831f8f
commit 509e11d650
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
plugins {
alias(libs.plugins.kotlin.jvm)
}
dependencies {
implementation("io.sentry:sentry-okhttp:8.16.0")
implementation(project(":lib-depends-on-latest"))
testImplementation(libs.assertk)
testImplementation(project(":classpathscanner"))
}

View File

@@ -0,0 +1,28 @@
package artifacttests
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.exactly
import kotlin.test.Test
class DependsOnSentryAndLatestTest {
@Test
fun exactlyOneOkHttpJvmDependency() {
assertThat(ClasspathScanner.roots)
.exactly(1) { assert ->
assert
.transform { path -> path.toString() }
.contains("/com.squareup.okhttp3/okhttp-jvm/")
}
}
@Test
fun noOkHttp4Dependency() {
assertThat(ClasspathScanner.roots)
.exactly(0) { assert ->
assert
.transform { path -> path.toString() }
.contains("/com.squareup.okhttp3/okhttp/")
}
}
}

View File

@@ -30,5 +30,6 @@ include("lib-depends-on-ld-and-latest")
include("lib-depends-on-latest")
include("lib-depends-on-latest-jvm")
include("lib-depends-on-retrofit-and-latest")
include("lib-depends-on-sentry-and-latest")
include("lib-depends-on-wire-and-latest")