Hi, I created a brand new gradle project. here's ...
# kotest
r
Hi, I created a brand new gradle project. here's the build.gradle.kt file content ::
Copy code
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0

plugins {
   kotlin("jvm") version "2.0.21"
   kotlin("plugin.spring") version "2.0.21"
   id("org.springframework.boot") version "3.3.4"
   id("io.spring.dependency-management") version "1.1.6"
}

group = "x.y.z"
version = "0.0.1-SNAPSHOT"

kotlin {
   jvmToolchain(21)
   compilerOptions {
      jvmTarget.set(JVM_21)
      languageVersion.set(KOTLIN_2_0)
      freeCompilerArgs.addAll("-Xjsr305=strict")
   }
}

repositories {
   mavenCentral()
}

extra["kotlinVersion"] = "2.0.21"
extra["coroutinesVersion"] = "1.9.0"
extra["kotestVersion"] = "6.0.0.M1"
extra["kotestExtSpringVersion"] = "1.3.0"

dependencies {
   implementation(platform("org.jetbrains.kotlin:kotlin-bom:${property("kotlinVersion")}"))
   implementation("org.jetbrains.kotlin:kotlin-reflect")
   implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")

   implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
   implementation("com.fasterxml.jackson.module:jackson-module-kotlin")

   implementation("org.springframework.boot:spring-boot-starter-webflux")
   implementation("org.springframework.boot:spring-boot-starter-actuator")

   testRuntimeOnly("org.junit.platform:junit-platform-launcher")

   testImplementation("io.kotest:kotest-runner-junit5-jvm:${property("kotestVersion")}")
   testImplementation("io.kotest:kotest-property-jvm:${property("kotestVersion")}")
   testImplementation("io.kotest.extensions:kotest-extensions-spring:${property("kotestExtSpringVersion")}")

   testImplementation("org.springframework.boot:spring-boot-starter-test")
}

dependencyManagement {
   imports {
      mavenBom("org.jetbrains.kotlinx:kotlinx-coroutines-bom:${property("coroutinesVersion")}")
   }
}

tasks.withType<Test> {
   useJUnitPlatform()
}
and I'm getting following errors during the build ::
Copy code
Errors occurred while building effective model from \.gradle\caches\modules-2\files-2.1\io.kotest\kotest-framework-api\6.0.0.M1\d1ee8dd1220fdd152c979d19426643488d210765\kotest-framework-api-6.0.0.M1.pom:
    'dependencies.dependency.version' for org.jetbrains.kotlin:kotlin-reflect:jar is missing. in io.kotest:kotest-framework-api:6.0.0.M1

Errors occurred while building effective model from \.gradle\caches\modules-2\files-2.1\io.kotest\kotest-assertions-shared\6.0.0.M1\b30ac23172587b5588221ad054477ef3b8931455\kotest-assertions-shared-6.0.0.M1.pom:
    'dependencies.dependency.version' for org.jetbrains.kotlin:kotlin-reflect:jar is missing. in io.kotest:kotest-assertions-shared:6.0.0.M1

Errors occurred while building effective model from \.gradle\caches\modules-2\files-2.1\io.kotest\kotest-common\6.0.0.M1\9702eead2c8b1c36a19c59206240fb364c050fae\kotest-common-6.0.0.M1.pom:
    'dependencies.dependency.version' for org.jetbrains.kotlin:kotlin-reflect:jar is missing. in io.kotest:kotest-common:6.0.0.M1

Errors occurred while building effective model from \.gradle\caches\modules-2\files-2.1\io.kotest\kotest-framework-engine\6.0.0.M1\eca01543929b20dfb4d6ea0642330e7b5db19343\kotest-framework-engine-6.0.0.M1.pom:
    'dependencies.dependency.version' for org.jetbrains.kotlin:kotlin-reflect:jar is missing. in io.kotest:kotest-framework-engine:6.0.0.M1

Errors occurred while building effective model from \.gradle\caches\modules-2\files-2.1\io.kotest\kotest-assertions-core\6.0.0.M1\1cc66a3b4c610582aad7927d6b7c164f9727e19\kotest-assertions-core-6.0.0.M1.pom:
    'dependencies.dependency.version' for org.jetbrains.kotlin:kotlin-reflect:jar is missing. in io.kotest:kotest-assertions-core:6.0.0.M1
I don't think I want to explicitly declare these ::
Copy code
kotest-framework-api-6.0.0.M1.pom
kotest-framework-engine-6.0.0.M1.pom
kotest-common-6.0.0.M1.pom
kotest-assertions-shared-6.0.0.M1.pom
kotest-assertions-core-6.0.0.M1.pom
it seems like these POMs are defective OR I'm missing something... in case I'm missing something, what should I add in the build file to fix this issue? Thanks,
@sam @Emil Kantis
m
FWIW, I can reproduce, I'm having the exactly same problem in the apps.
is it related to https://kotlinlang.slack.com/archives/CT0G9SD7Z/p1733390016484729 I wonder? Smells awfully similar...
e
Sorry I’m a bit out of the loop on 6.0 milestone builds. I think @Oliver.O and @Alex Kuznetsov are the ones to ask :)
s
There's only one M1 build and then snapshots. I'm aiming to do an M2 build this weekend
🙌 1
o
I'm also somewhat detached currently (messing with Python atm), but I hope to catch up this weekend, doing some review.
thank you color 1
❤️ 1
a
I'm OOO until 2025, will catch up then.