title: Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 10
body: <p>In my build.gradle file I upgraded the version of one dependency (namely: com.db:microservice-commons).
  After loading the gradle changes, I get the following error message:</p>
  <pre><code>&gt; Build file 'C:\Projects\Container\mschmidt\mount\booking-service\standalone\build.gradle' line: 50
  
     &gt; A problem occurred evaluating project ':standalone'.
     &gt; Could not resolve all files for configuration ':standalone:runtimeClasspath'.
     &gt; Could not resolve com.db:microservice-commons:2.4.1.
       Required by:
           project :standalone
           project :standalone &gt; project :service
        &gt; No matching variant of com.db:microservice-commons:2.4.1 was found. The consumer was configured to find a runtime of a library compatible with Java 10, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
            - Variant 'apiElements' capability com.db:microservice-commons:2.4.1 declares a library, packaged as a jar, and its dependencies declared externally:
                - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 10
                - Other compatible attribute:
                    - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
            - Variant 'runtimeElements' capability com.db:microservice-commons:2.4.1 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 10
                - Other compatible attribute:
                    - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
            - Variant 'samplessources' capability com.db:microservice-commons:2.4.1:
                - Incompatible because this component declares documentation 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 10)
                    - Doesn't say anything about its elements (required them packaged as a jar)
                    - Doesn't say anything about its usage (required a runtime)
  </code></pre>
  <p>Line 50+ of file 'C:\Projects\Container\mschmidt\mount\booking-service\standalone\build.gradle' looks as follows:</p>
  <pre><code> manifest {
      def manifestClasspath = configurations.runtimeClasspath.collect { it.getName() }.join(' ')
      attributes 'Archiver-Version': 'Plexus Archiver'
      attributes 'Build-Jdk': org.gradle.internal.jvm.Jvm.current()
      attributes 'Main-Class': 'com.db.service.standalone.Standalone', 'Class-Path': manifestClasspath
      }
  }
   
  </code></pre>
  <p>I have no clue what to make of this. Project JDK and Gradle JVM are set to Java 11.
  This post here:
  <a href="https://stackoverflow.com/questions/68087672/the-consumer-was-configured-to-find-a-runtime-of-a-library-compatible-with-java">The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally but:</a>
  ... pertains to the same problem but didn't help me.</p>
  <p>Any ideas what's going on here?</p>