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

Sole ./gradlew check does not work. #185

Closed
snazy opened this issue May 18, 2022 · 1 comment
Closed

Sole ./gradlew check does not work. #185

snazy opened this issue May 18, 2022 · 1 comment

Comments

@snazy
Copy link
Member

snazy commented May 18, 2022

After the bump of the com.diffplug.gradle.spotless plugin from 6.6.0 to 6.6.1 (#178), just running ./gradlew check starts to fail w/ the below error. Interestingly CI is not affected, it seems that a ./gradlew assemble check works around the issue.

From a very brief look it seems that spottless 6.6.1 creates a spotless123 variant that "conflicts" with the runtimeElements variant.

$ ./gradlew check -x jmh 
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':conformance:test'.
> Could not resolve all task dependencies for configuration ':conformance:testRuntimeClasspath'.
   > Could not resolve project :.
     Required by:
         project :conformance
         project :conformance > project :core
         project :conformance > project :generated-pb
      > The consumer was configured to find a runtime of a platform compatible with Java 8, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally. However we cannot choose between the following variants of project ::
          - runtimeElements
          - spotless1316845950
        All of them match the consumer attributes:
          - Variant 'runtimeElements' capability org.projectnessie.cel:cel-java:0.3.4-SNAPSHOT declares a runtime of a platform:
              - Unmatched 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
          - Variant 'spotless1316845950' capability org.projectnessie.cel:cel-java:0.3.4-SNAPSHOT declares a component, and its dependencies declared externally:
              - Unmatched attributes:
                  - Doesn't say anything about its component category (required a platform)
                  - 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about its usage (required a runtime)
        The following variants were also considered but didn't match the requested attributes:
          - Variant 'apiElements' capability org.projectnessie.cel:cel-java:0.3.4-SNAPSHOT declares a platform:
              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
              - 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
          - Variant 'enforcedApiElements' capability org.projectnessie.cel:cel-java-derived-enforced-platform:0.3.4-SNAPSHOT:
              - Incompatible because this component declares an API of an enforced platform and the consumer needed a runtime of a platform
              - 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
          - Variant 'enforcedRuntimeElements' capability org.projectnessie.cel:cel-java-derived-enforced-platform:0.3.4-SNAPSHOT declares a runtime of a component:
              - Incompatible because this component declares an enforced platform and the consumer needed a platform
              - 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 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
   > Could not find com.google.protobuf:protobuf-java:.
     Required by:
         project :conformance
         project :conformance > project :generated-pb
   > Could not find io.grpc:grpc-protobuf:.
     Required by:
         project :conformance
   > Could not find io.grpc:grpc-stub:.
     Required by:
         project :conformance
   > Could not find io.grpc:grpc-netty-shaded:.
     Required by:
         project :conformance
   > Could not find org.assertj:assertj-core:.
     Required by:
         project :conformance
   > Could not find org.junit.jupiter:junit-jupiter-api:.
     Required by:
         project :conformance
   > Could not find org.junit.jupiter:junit-jupiter-params:.
     Required by:
         project :conformance
   > Could not find org.junit.jupiter:junit-jupiter-engine:.
     Required by:
         project :conformance
   > Could not find org.agrona:agrona:.
     Required by:
         project :conformance > project :core
@snazy
Copy link
Member Author

snazy commented Oct 24, 2022

Closing this one, as it is no longer an issue.

@snazy snazy closed this as completed Oct 24, 2022
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

1 participant