Emil Kantis
06/29/2022, 10:30 PMEmil Kantis
06/29/2022, 10:35 PMjvm {
      compilations.all {
         kotlinOptions {
            jvmTarget = "1.8"
         }
      }
   }Emil Kantis
06/29/2022, 10:41 PMapiElementsjvmApiElements> The consumer was configured to find an API of a library compatible with Java 17, 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'. However we cannot choose between the following variants of project :kotest:kotest-framework:kotest-framework-api:
          - apiElements
          - jvmApiElements
        All of them match the consumer attributes:
          - Variant 'apiElements' capability io.kotest:kotest-framework-api:5.4.0-LOCAL declares an API of a library compatible with Java 17, packaged as a jar, and its dependencies declared externally:
              - Unmatched attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
          - Variant 'jvmApiElements' capability io.kotest:kotest-framework-api:5.4.0-LOCAL declares an API of a library, packaged as a jar, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
              - 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 version (required compatibility with Java 17)Emil Kantis
06/29/2022, 10:44 PMruntimeElementsjvmRuntimeElementsjava {
   sourceCompatibility = JavaVersion.VERSION_1_8
   targetCompatibility = JavaVersion.VERSION_1_8
}> The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'. However we cannot choose between the following variants of project :kotest:kotest-runner:kotest-runner-junit5:
          - jvmRuntimeElements
          - runtimeElements
        All of them match the consumer attributes:
          - Variant 'jvmRuntimeElements' capability io.kotest:kotest-runner-junit5:5.4.0-LOCAL declares a runtime of a library, packaged as a jar, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
              - 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 version (required compatibility with Java 8)
          - Variant 'runtimeElements' capability io.kotest:kotest-runner-junit5:5.4.0-LOCAL declares a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally:
              - Unmatched attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')tapchicoma
06/30/2022, 7:34 AMEmil Kantis
06/30/2022, 7:39 AMkotlin {
   jvmToolchain {
      (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
   }
}Could not determine the dependencies of task ':kotest-extensions-spring:compileJava'.
> Could not resolve all task dependencies for configuration ':kotest-extensions-spring:compileClasspath'.
   > Could not resolve io.kotest:kotest-framework-api:5.3.1.
     Required by:
         project :kotest-extensions-spring
      > 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'. However we cannot choose between the following variants of project :kotest:kotest-framework:kotest-framework-api:
          - apiElements
          - jvmApiElements
        All of them match the consumer attributes:
          - Variant 'apiElements' capability io.kotest:kotest-framework-api:5.4.0-LOCAL declares an API of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally:
              - Unmatched attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
          - Variant 'jvmApiElements' capability io.kotest:kotest-framework-api:5.4.0-LOCAL declares an API of a library, packaged as a jar, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
              - 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 version (required compatibility with Java 11)kotest-examples-spring-webfluxkotest-extensions-springkotestkotest-extensions-springkotestkotestkotest-extensions-springtapchicoma
06/30/2022, 7:41 AMEmil Kantis
06/30/2022, 7:43 AMtapchicoma
06/30/2022, 7:46 AMapiElementskotest-framework-apijvmApiElements-publishedEmil Kantis
06/30/2022, 7:53 AMEmil Kantis
06/30/2022, 7:53 AMtapchicoma
06/30/2022, 7:55 AMapiElementsjvmApiElementsorg.gradle.jvm.version  = 11kotest-framework-apijvmApiElementsconfigurations["jvmApiElements"].attributes {
    attribute(Bundling.BUNDLING_ATTRIBUTE, project.objects.named(Bundling, Bundling.EXTERNAL)
    attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 11)
}Emil Kantis
06/30/2022, 8:07 AMkotestEmil Kantis
06/30/2022, 8:07 AMtapchicoma
06/30/2022, 8:09 AMkotest-assertions-shared:jvmApiElementsjvmApiElementsEmil Kantis
06/30/2022, 8:09 AMjvmApiElementsEmil Kantis
06/30/2022, 8:11 AMtapchicoma
06/30/2022, 8:17 AMEmil Kantis
06/30/2022, 9:27 AMAnton Lakotka [JB]
06/30/2022, 2:50 PMjava-libraryjavadocjava-librarykotlin {
   jvm {
      withJava() // <-- this will enabled Java compilation and other tooling around it. such as javadoc.
   }
}Emil Kantis
06/30/2022, 2:53 PMEmil Kantis
06/30/2022, 2:53 PMAnton Lakotka [JB]
06/30/2022, 2:55 PMjavadoc> Task :kotest-framework:kotest-framework-api:javadoc NO-SOURCEwithJava()Emil Kantis
06/30/2022, 2:58 PMAnton Lakotka [JB]
06/30/2022, 2:59 PMjava-libraryjavadoc