https://github.com/huangsam/kotlin-trial
Kotlin playground
https://github.com/huangsam/kotlin-trial
Last synced: 7 months ago
JSON representation
Kotlin playground
- Host: GitHub
- URL: https://github.com/huangsam/kotlin-trial
- Owner: huangsam
- Created: 2024-03-02T07:46:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T06:06:51.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:55:37.858Z (over 1 year ago)
- Language: Kotlin
- Size: 186 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin Trial
Coding in Kotlin to:
1. Explore linting, testing and logging frameworks for Kotlin
2. Understand enough about null safety, lambdas, generics, etc.
3. Assess its compatibility with Java code## Getting started
Load the project up in [Intellij IDEA](https://www.jetbrains.com/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](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) to your local copy by running `./gradlew addHooks`.
### Mockito warning
A warning appeared while integrating [Mockito](https://site.mockito.org/) 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
-
-
-
-
-
-
-