You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins {
id 'java'
id 'io.sentry.jvm.gradle' version '4.8.0'
}
group = 'org.saphri.sentry'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation platform('io.sentry:sentry-bom:7.10.0')
implementation 'io.github.openfeign:feign-okhttp:13.2.1'
implementation 'io.sentry:sentry-openfeign'
}
test {
useJUnitPlatform()
}
If I downgrade the sentry-bom to 7.9.0 the build is ok
Expected Result
build should work
Actual Result
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve io.sentry:sentry-android-okhttp:7.10.0.
Required by:
project : > io.sentry:sentry-bom:7.10.0
project : > io.github.openfeign:feign-okhttp:13.2.1 > com.squareup.okhttp3:okhttp:4.12.0
> No matching variant of io.sentry:sentry-android-okhttp:7.10.0 was found. The consumer was configured to find a library for use during compile-time, compatible with Java 21, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant 'releaseVariantReleaseApiPublication' declares a library for use during compile-time, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 21)
- Variant 'releaseVariantReleaseRuntimePublication' declares a library for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 21)
The dependency io.sentry:sentry-android-okhttp:7.10.0 seems to have introduced a .module file that gradle uses.. this file was not present in the 7.9.0 release of that library (or any previous releases).
hi @Saphri thanks for the report, I believe this issue will be fixed with the next release of the gradle plugin, this is the PR that fixes it getsentry/sentry-android-gradle-plugin#724. We'll now auto-install sentry-okhttp instead of sentry-android-okhttp, therefore the pure JVM projects should not fail anymore due to the aar dependency.
Integration
sentry-okhttp
Java Version
21
Version
7.10.0
Steps to Reproduce
Use a simpel gradle.build file
If I downgrade the sentry-bom to 7.9.0 the build is ok
Expected Result
build should work
Actual Result
The dependency
io.sentry:sentry-android-okhttp:7.10.0
seems to have introduced a.module
file that gradle uses.. this file was not present in the 7.9.0 release of that library (or any previous releases).See https://repo1.maven.org/maven2/io/sentry/sentry-android-okhttp/7.10.0/
The text was updated successfully, but these errors were encountered: