TestProject Forum
Powered by leading experts in the test automation community

Could not resolve io.testproject:java-sdk:0.64.2-RELEASE

I’m exported TestProject code and running in IntelliJ locally with OpenJDK 15.
I was able to build gradle successfully until I applied our local repository to gradle.build in order to connect to our local database and license to use it.
And in doing that ‘io.testproject:java-sdk:0.64.2-RELEASE’ no longer will build dependencies, it just gives me the following:

Could not resolve all files for configuration ‘:compileClasspath’.

Could not resolve io.testproject:java-sdk:0.64.2-RELEASE.
Required by:
project :
No matching variant of io.testproject:java-sdk:0.64.2-RELEASE was found. The consumer was configured to find an API of a library compatible with Java 7, preferably not packaged as a jar, and its dependencies declared externally but:
- Variant ‘apiElements’ capability io.testproject:java-sdk:0.64.2-RELEASE declares an API of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 7
- Variant ‘javadocElements’ capability io.testproject:java-sdk:0.64.2-RELEASE declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn’t say anything about its target Java version (required compatibility with Java 7)
- Doesn’t say anything about its elements (required them preferably not packaged as a jar)
- Variant ‘runtimeElements’ capability io.testproject:java-sdk:0.64.2-RELEASE declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 7
- Variant ‘sourcesElements’ capability io.testproject:java-sdk:0.64.2-RELEASE declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn’t say anything about its target Java version (required compatibility with Java 7)
- Doesn’t say anything about its elements (required them preferably not packaged as a jar)

It there any way to make io.testproject… to work with our local repository if that is the issue? Because once I remove applying our repository the issue goes away.

Thank you.

Hello @shltrmail, can you please add back your repository dependencies and check the gradle JDK version? you can find it under Gradle Settings

Capture

If the version there is 11 or newer check the version in gradle.properties https://docs.gradle.org/current/userguide/build_environment.html?_ga=2.102548035.316855990.1605427203-1425097220.1605427203#sec:gradle_configuration_properties