Daniele B
09/18/2020, 6:41 PMExecution failed for task ':shared:jsPackageJson'.
> NPM Dependencies already resolved and installed
at org.jetbrains.kotlin.gradle.targets.js.npm.KotlinNpmResolutionManager.requireConfiguringState$kotlin_gradle_plugin(KotlinNpmResolutionManager.kt:122)
at org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinPackageJsonTask.getCompilationResolver(KotlinPackageJsonTask.kt:26)
at org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinPackageJsonTask.getPackageJson(KotlinPackageJsonTask.kt:50)
any idea?turansky
09/18/2020, 11:01 PMDaniele B
09/19/2020, 10:30 AMkotlin("js") apply false
the tasks even disappear from the gradle windowturansky
09/19/2020, 12:25 PMapply false
- must be used for root project, if root project is aggregator
/root - "apply false" only here
/shared - multiplatform
/js - js
Daniele B
09/19/2020, 4:30 PMplugins {
kotlin("js") apply false
}
shared:
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
id("com.android.library")
}
web:
plugins {
kotlin("js")
}
Daniele B
09/19/2020, 4:31 PMBuild file 'myproject/build.gradle.kts' line: 4
Plugin [id: 'org.jetbrains.kotlin.js', apply: false] was not found in any of the following source
turansky
09/19/2020, 5:53 PMroot
?Daniele B
09/20/2020, 3:01 AMplugins {
kotlin("js") apply false
}
buildscript {
repositories {
gradlePluginPortal()
jcenter()
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.0-alpha11")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}")
}
}
repositories {
google()
jcenter()
mavenCentral()
maven("<https://kotlin.bintray.com/kotlin-js-wrappers/>")
}
turansky
09/20/2020, 8:38 AMbuildscript
😞Daniele B
09/20/2020, 12:07 PMturansky
09/20/2020, 6:20 PMplugins
- new mode
buildscript
- old mode
Mix effect - undefinedDaniele B
09/20/2020, 7:46 PMbuildscript
is what the Android Studio Canary wizard creates for a new multiplatform project
do you know how to specify those 3 classpath
using the plugins syntax ?Daniele B
09/20/2020, 9:48 PMDaniele B
09/20/2020, 9:48 PMagrosner
09/21/2020, 6:17 PMagrosner
09/21/2020, 6:17 PM