I don’t understand what I’m missing
# javascript
r
I don’t understand what I’m missing
It’s a subproject of a project with
Copy code
subprojects {

    group = myGroup
    version = myVersion

    repositories {
        mavenCentral()
        jcenter()
    }

}
I don’t even have a
build
task
Why is the
kotlin {
block for a
KotlinJvmProject
, there’s no
kotlin("jvm")
in the context, I don’t get it
r
Just copy pasted your entire file instead of mine and it still completely ignores the kotlin-js plugin
I feel like somehow the kotlin-jvm plugin which is applied to a different subproject spreads to this one? Still doesn’t explain why the js plugin isn’t used either, it’s very weird
b
so you apply the jvm too?
if so, then apply multiplatform https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-a-multiplatform-project and this would add one block depth in the build.gradle that I've sent earlier
I'm not sure tho
haven't done that yet but I'm planning to
would appreciate if you send the setup once you figure it out!
r
No I don’t
I have a Gradle project with no kotlin plugin with 2 Gradle subprojects, one with the jvm plugin and one with the js plugin. One is backend the other is frontend, but it doesn’t work. I guess I’ll go multiplatform like I do with my mobile apps
g
@ribesg Does it IDE issue or it also cannot resolve it during build?
r
So it was an issue with the Gradle daemon I think, because it didn’t work when building from Gradle either. I killed everything Java and cleaned the project from any .idea, .gradle and build folders, then it worked.