We can manually configure the project with Gradle by performing the following steps:
- Create a Gradle project.
- Add the Kotlin Gradle plugin to the build script build.gradle file:classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version".
- Apply the kotlin-platform-common plugin to the common module.
- Add the kotlin-stdlib-common dependency to the common module.
- Apply the kotlin-platform-jvm plugin for the JVM platform, and the kotlin-platform-js plugin for the JS platform.
The complete build.gradle file for a common module with Kotlin 1.2-Beta2 is as follows:
buildscript { ext.kotlin_version = '1.2-Beta2' repositories { maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' } ...