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
I'm trying to use Jitpack to build a version of Robolectric pinned to a specific commit (rather than a moving snapshot). I'm trying to do this because I need a Robolectric build that I can use in my project's CI that has the fix for #8469.
However, Jitpack can't build Robolectric.
Steps to Reproduce
Take any Android project that currently uses Robolectric, and follow the instructions at https://jitpack.io/#robolectric/robolectric to modify the list of repositories to include https://jitpack.io.
...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of null.
> Could not resolve all task dependencies for configuration ':buildSrc:buildScriptClasspath'.
> Could not resolve project :buildSrc.
Required by:
project :buildSrc
> No matching variant of project :buildSrc was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.3' but:
- Variant 'apiElements' capability :buildSrc:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
- Variant 'mainSourceElements' capability :buildSrc:unspecified declares a component, and its dependencies declared externally:
- Incompatible because this component declares a component of category 'verification' and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
- Doesn't say anything about its usage (required runtime)
- Variant 'runtimeElements' capability :buildSrc:unspecified declares a library for use during runtime, 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 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
- Variant 'testResultsElementsForTest' capability :buildSrc:unspecified:
- Incompatible because this component declares a component of category 'verification' 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 version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
- Doesn't say anything about its usage (required runtime)
...
I'm not sure if this is a Jitpack issue (which is why I reported it there) or a Robolectric issue (which is why I'm reporting it here too).
The text was updated successfully, but these errors were encountered:
Description
This is a companion bug to jitpack/jitpack.io#6077
I'm trying to use Jitpack to build a version of Robolectric pinned to a specific commit (rather than a moving snapshot). I'm trying to do this because I need a Robolectric build that I can use in my project's CI that has the fix for #8469.
However, Jitpack can't build Robolectric.
Steps to Reproduce
https://jitpack.io
.(that commit ref is the current HEAD).
The Jitpack build log for this build is https://jitpack.io/com/github/robolectric/robolectric/0bb4e8f507/build.log, and it reports (this is an excerpt, see that link for the full contents):
I'm not sure if this is a Jitpack issue (which is why I reported it there) or a Robolectric issue (which is why I'm reporting it here too).
The text was updated successfully, but these errors were encountered: