This message was deleted.
# dependency-management
s
This message was deleted.
v
If it would not work at all, it would complain about
org.testcontainers:kafka
, not
org.testcontainers:junit-jupiter
. And if I try your setup, all dependencies resolve properly but
org.testcontainers:junit-jupiter
is not included at all, so I guess you miss some details here.
н
oh right, sorry, I posted wrong error message. It actually complains it can't download exactly
org.testcontainers:kafka
Copy code
Could not find org.testcontainers:kafka:.
Required by:
    project :
Have updated original error message I posted
v
Well, but then it is like I said, works perfectly fine here. Can you provide an MCVE?
н
Sure, here is complete `build.gradle`:
Copy code
plugins {
    id "java"
}

group "org.example"
version "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

dependencies {
    implementation platform("org.testcontainers:testcontainers-bom:1.17.4")
}

java {
    toolchain.languageVersion = JavaLanguageVersion.of(18)
}

testing {
    suites {
        integrationTest(JvmTestSuite) {
            dependencies {
                implementation project
                implementation "org.testcontainers:kafka"
            }
        }
    }
}
And packaged "hello-world" project which allows to reproduce it
Interesting. That error doesn't appear anymore, after I press "reload gradle project" in IntelliJ...
👌 1