๐Ÿ“ฆ huangsam / kotlin-trial

Kotlin playground

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
gradlejunitkotlinkotlin-coroutineslearn-to-codemockitoslf4j
๐Ÿ“ฅ Clone https://github.com/huangsam/kotlin-trial.git
HTTPS git clone https://github.com/huangsam/kotlin-trial.git
SSH git clone git@github.com:huangsam/kotlin-trial.git
CLI gh repo clone huangsam/kotlin-trial
Samuel Huang Samuel Huang Update gradle dependencies 779dafc 2 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .idea
๐Ÿ“ .run
๐Ÿ“ gradle
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ build.gradle.kts
๐Ÿ“„ gradle.properties
๐Ÿ“„ gradlew
๐Ÿ“„ gradlew.bat
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Kotlin Trial

Coding in Kotlin to:

  • Explore linting, testing and logging frameworks for Kotlin
  • Understand enough about null safety, lambdas, generics, etc.
  • Assess its compatibility with Java code

Getting started

Load the project up in Intellij IDEA.

After that, you can:

  • Run app via ./gradlew run
  • Test code via ./gradlew test
  • Check code style via ./gradlew detekt
  • Fix code style via ./gradlew detekt --auto-correct

Git hooks

Add hooks to your local copy by running ./gradlew addHooks.

Mockito warning

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:

Helpful resources