Kotlin playground
https://github.com/huangsam/kotlin-trial.git
Coding in Kotlin to:
Load the project up in Intellij IDEA.
After that, you can:
./gradlew run./gradlew test./gradlew detekt./gradlew detekt --auto-correctAdd hooks to your local copy by running ./gradlew addHooks.
A warning appeared while integrating Mockito into this Kotlin project:
WARNING: A Java agent has been loaded dynamically (...)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
It is discussed here in more detail: