Kotlin DSL
Getting Started
You must have Kotlin Coroutines installed.
With the project being written in Kotlin, Kotlin DSL is heavily supported by default. However, a separate module is available if you want even more extensive Kotlin DSL support with Kotlin Coroutines.
Accessing the API
To use the Kotlin module, you need to add it as a dependency:
compile 'com.undefined:stellar-kotlin:(latest version):platform' // or implementation if shadowingIf you don't use the plugin
you need modify your Gradle dependency to implementation instead of compile/compileOnly or remove the scope block from your Maven dependency.
Setup
To get started, make sure to change the scope in StellarConfig:
class MyPlugin : JavaPlugin() {
val scope = // ...
override fun onEnable() {
StellarConfig.setScope(scope)
}
}