https://github.com/jakobkmar/spigot-language-kotlin
A Spigot plugin including the Kotlin stdlib and all common kotlinx libraries
https://github.com/jakobkmar/spigot-language-kotlin
Last synced: 9 months ago
JSON representation
A Spigot plugin including the Kotlin stdlib and all common kotlinx libraries
- Host: GitHub
- URL: https://github.com/jakobkmar/spigot-language-kotlin
- Owner: jakobkmar
- License: apache-2.0
- Created: 2021-05-18T16:36:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T01:32:02.000Z (over 4 years ago)
- Last Synced: 2025-02-10T02:47:06.139Z (10 months ago)
- Language: Kotlin
- Size: 104 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Everything this plugin does is to provide the Kotlin stdlib and all common kotlinx libraries at runtime. This way you
won't have to shade these Kotlin dependencies into your .jar file. This avoids conflicts and reduces the file size.
Add this dependency to your Gradle project:
```kotlin
compileOnly("net.axay:spigot-language-kotlin:VERSION")
```
Make sure that you declare the dependency in your plugin.yml:
```yaml
depend: [ spigot-language-kotlin ]
```
And add the plugin (which you can download from the releases page) to your `plugins` directory.
*(Optional)* If you are using the Gradle shadow plugin anyways, you can exclude **all** Kotlin dependencies from the shadow task by
configuring it this way:
```kotlin
shadowJar {
dependencies {
exclude { it.moduleGroup == "org.jetbrains.kotlin" || it.moduleGroup == "org.jetbrains.kotlinx" }
}
}
```