Hi All I'm trying to create MultiPlatform project...
# gradle
v
Hi All I'm trying to create MultiPlatform project with Gradle(Kotlin-DSL) when i try to set
kotlin-platform-common
plugiin I'm getting following error any idea what's wrong here
m
Show build script
v
import com.devknightzzz.config.TodoConfig group = "com.devknigithzzz" version = "1.0-SNAPSHOT" buildscript { repositories { mavenCentral() maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.2") } } dependencies { classpath(TodoConfig.BuildPlugin.kotlinPlugin) } } allprojects { repositories { jcenter() mavenCentral() maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.2") } } }
☝️ is root buildscript
import org.gradle.kotlin.dsl.dependencies import org.gradle.kotlin.dsl.kotlin import org.gradle.kotlin.dsl.repositories //apply plugin: 'java' //apply plugin: 'kotlin-platform-common' // id("kotlin-platform-common")/*.version("1.1.20")*/ plugins { kotlin("kotlin-platform-common") } repositories { mavenCentral() } dependencies { compile(kotlin(TodoConfig.KotlinModule.commonStdLib, TodoConfig.kotlinVersion)) // compile "org.jetbrains.kotlinkotlin stdlib common$kotlin_version" // testCompile "org.jetbrains.kotlinkotlin test annotations common$kotlin_version" // testCompile "org.jetbrains.kotlinkotlin test common$kotlin_version" // testCompile group: 'junit', name: 'junit', version: '4.12' }
☝️ common buildscript
i
@vinayagasundar There's no version 1.1.20 of Kotlin plugin. Before 1.1.50 the versions were like 1.1.2, 1.1.3, etc. Also note that multiplatform projects are experimental and improving with each version, so if you want to try them, it's better to use the latest version, namely 1.2.30
v
@ilya.gorbunov thanks for input