tylerwilson
02/26/2021, 2:15 PMplugins {
id("com.android.library")
kotlin("multiplatform")
kotlin("native.cocoapods")
kotlin("plugin.serialization") version "1.4.30"
id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3"
}
which gives me this error in AS:
Error resolving plugin [id: 'org.jetbrains.kotlin.plugin.serialization', version: '1.4.30']
> Plugin request for plugin already on the classpath must not include a version
it works if I remove the version, but then fails when I do the iOS framework build. The serialzation github page shows to include the version. What is the issue here?tapchicoma
02/26/2021, 2:16 PMtylerwilson
02/26/2021, 2:16 PMtapchicoma
02/26/2021, 2:17 PMtylerwilson
02/26/2021, 2:17 PMShowing All Messages
* Where:
Build file '/Users/tylerwilson/Projects/salonbiz-library/build.gradle.kts' line: 13
* What went wrong:
Plugin [id: 'org.jetbrains.kotlin.plugin.serialization', artifact: 'org.jetbrains.kotlin:kotlin-serialization:null'] was not found in any of the following sources:
tylerwilson
02/26/2021, 2:18 PMwhen (requested.id.id) {
"kotlin-multiplatform", "org.jetbrains.kotlin.multiplatform", "org.jetbrains.kotlin.native.cocoapods" ->
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30")
"kotlinx-serialization", "org.jetbrains.kotlin.plugin.serialization" ->
useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
}
tapchicoma
02/26/2021, 2:19 PMsettings.gradle.kts
- then you don't need to define version in any project build.gradle.kts
tylerwilson
02/26/2021, 2:20 PMtylerwilson
02/26/2021, 2:20 PMtapchicoma
02/26/2021, 2:22 PMpluginManagement
in settings?
Something like this (note it is in Groovy):
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.4.30"
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
}
tylerwilson
02/26/2021, 2:23 PMCicero
02/26/2021, 2:23 PMtylerwilson
02/26/2021, 2:24 PMCicero
02/26/2021, 2:24 PMtapchicoma
02/26/2021, 2:24 PMbuildSrc
module)Cicero
02/26/2021, 2:25 PMtylerwilson
02/26/2021, 2:32 PMVampire
02/26/2021, 3:12 PMtylerwilson
02/26/2021, 3:17 PMtylerwilson
02/26/2021, 3:19 PMbut it works now, so won’t have to change until 1.4.31. 😉And then I just saw they released 1.4.31. Funny (?)
Vampire
02/26/2021, 3:19 PMVampire
02/26/2021, 3:19 PMtylerwilson
02/26/2021, 3:21 PMVampire
02/26/2021, 3:23 PMtylerwilson
02/26/2021, 3:23 PMVampire
02/26/2021, 3:24 PMVampire
02/26/2021, 3:25 PM