You can use either Gradle or Maven to build your Kotlin project. You can create a new Kotlin project in IntelliJ IDEA without any build automation, but here is how to set up a Kotlin project for Gradle and Maven and how to set it to use RxJava and RxKotlin.
Configuring Kotlin
Configuring Kotlin with Gradle
To use the Kotlin language with Gradle, first, add the following buildscript {} block to your build.gradle file:
buildscript {
ext.kotlin_version = '<version to use>'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-
plugin:$kotlin_version"
}
}
Then, you will need to apply the plugin, as shown in the following...