Open KirkBushman opened 6 years ago
Looks like you are applying plugin multiple times. Is it multimodule project?
Yes I have the base project which has nothing, and two subprojects that are the backend and frontend
subprojects { p ->
p.buildscript {
ext.kotlin_version = "1.1.61"
ext.kotlin_frontend = "0.0.23"
repositories {
jcenter()
maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:$kotlin_frontend"
}
}
}
subprojects {
ext.kotlin_version = "1.1.61"
ext.ktor_version = "0.4.0"
ext.html_version = "0.6.8"
ext.gson_version = "2.8.2"
repositories {
mavenLocal()
jcenter()
maven { url "http://dl.bintray.com/kotlin/kotlinx.html" }
maven { url "http://dl.bintray.com/kotlin/ktor" }
}
}
this is the main project's gradle file
I have the same problem:
Failed to notify project evaluation listener. Could not create task of type 'GeneratePackagesJsonTask'. Cannot add task ':npm-preunpack' as a task with that name already exists.
And this is a simple single gradle file/project.
For what is worth, I tried downloading the full stack sample provided, and it still gives this error... I'm stuck...
What gradle do you use? Is it reproducible with sample project from repo?
Gradle 4.3.1, using the latest intellij 2017.3, updated today, the problem is still there
Ok, I'm not an expert, but I think it has a problem with gradle in my machine: If I remove the kotlin-frontend-plugin, I can build using both "gradle build" or "./gradlew build". If I'm using the kotlin-frontend-plugin, I can only build using "./gradlew build".
The error I have reported above comes out if I use "gradle build".
Hi, when I try to build I get this error message, I tried multiple configurations of gradle I found online, but nothing works...
this is the message:
this is my current config:
Someone knows what is going on? Am I doing something wrong? Thanks in advance...