I can't get my Gradle DSL integration to work, IDE...
# getting-started
j
I can't get my Gradle DSL integration to work, IDEA doesn't understand that I want to have several src-filders. Any ideas? This is how my gradle.build.kts looks like, that lives on the root of my project:
Copy code
plugins {
    kotlin("jvm") version "1.3.72"
}

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath(kotlin("gradle-plugin", version = "1.3.72"))
    }
}

sourceSets.main {
    java.srcDirs("components/logger/src",
                 "components/user/src")
}
d
Enable the
idea
plugin:
Copy code
plugins {
  idea
}
That usually helps for me
j
I aded that line + changed from "java.srcDirs" to "kotlin.srcDirs". The problem now is that "srcDirs" is marked red in IDEA.
d
I just tried it, it worked fine here in a kts gradle I have
j
It works now. I had te reinstall gradle to use 6.5. Thanks!
m
I've done something similar to that example with a "core" project, a "cli" project, and a "webapp" project
j
That was awesome, thanks!