Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency issue with new 3.8.0 client #765

Closed
matteeos opened this issue Nov 22, 2022 · 4 comments
Closed

Dependency issue with new 3.8.0 client #765

matteeos opened this issue Nov 22, 2022 · 4 comments

Comments

@matteeos
Copy link

When including new client 3.8.0 as gradle api dependency, we got following build issues with opentelemetry:

   > Could not resolve all files for configuration ':components:cadence-client:compileClasspath'.
      > Could not resolve io.opentelemetry:opentelemetry-bom:1.19.0.
        Required by:
            project :components:cadence-client
            project :components:cadence-client > com.uber.cadence:cadence-client:3.8.0
         > No matching variant of io.opentelemetry:opentelemetry-bom:1.19.0 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
             - Variant 'apiElements' capability io.opentelemetry:opentelemetry-bom:1.19.0 declares an API of a component:
                 - Incompatible because this component declares a platform and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - 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 11)
                     - Doesn't say anything about its elements (required them preferably in the form of class files)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'enforcedApiElements' capability io.opentelemetry:opentelemetry-bom-derived-enforced-platform:1.19.0 declares an API of a component:
                 - Incompatible because this component declares an enforced platform and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - 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 11)
                     - Doesn't say anything about its elements (required them preferably in the form of class files)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'enforcedRuntimeElements' capability io.opentelemetry:opentelemetry-bom-derived-enforced-platform:1.19.0 declares a runtime of a component:
                 - Incompatible because this component declares an enforced platform and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - 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 11)
                     - Doesn't say anything about its elements (required them preferably in the form of class files)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'runtimeElements' capability io.opentelemetry:opentelemetry-bom:1.19.0 declares a runtime of a component:
                 - Incompatible because this component declares a platform and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - 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 11)
                     - Doesn't say anything about its elements (required them preferably in the form of class files)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')


@mindaugasbarcauskas
Copy link
Contributor

Will look into this, thanks @matteeos

@mindaugasbarcauskas
Copy link
Contributor

Hi @matteeos could you tell me more on which kind of environment you are trying to build it? I tested using empty spring boot project and it built fine.

I see it is problem with openTelemetry bom dependency, will investigate more on this.

@matteeos
Copy link
Author

matteeos commented Jan 2, 2023

I am building it on:
OpenJDK Runtime Environment Zulu11.54+23-CA (build 11.0.14+9-LTS),
thriftExecutable "/opt/homebrew/opt/thrift@0.9/bin/thrift
using also osx protobuf plugin - 'io.grpc:protoc-gen-grpc-java:1.28.0:osx-x86_64'

Then using it in some Vert.x applications (grade+kotlin).
Maybe your build would work, but it's not published on mvn repository. Why is it so delay?

@mindaugasbarcauskas
Copy link
Contributor

Hi I published 3.8.1 there shouldn't be any issue with that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants