https://github.com/kscripting/kscript-annotations
Annotations to configure Kotlins scripts run with kscript
https://github.com/kscripting/kscript-annotations
Last synced: 11 months ago
JSON representation
Annotations to configure Kotlins scripts run with kscript
- Host: GitHub
- URL: https://github.com/kscripting/kscript-annotations
- Owner: kscripting
- License: mit
- Created: 2017-11-02T00:09:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T09:52:42.000Z (over 3 years ago)
- Last Synced: 2025-04-11T23:44:13.578Z (11 months ago)
- Language: Kotlin
- Size: 123 KB
- Stars: 10
- Watchers: 0
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Annotation directives for `kscript`
For details see https://github.com/kscripting/kscript
Current version: `1.5` (MavenCentral)
## How to use?
Simply change your gradle dependencies to include:
```
implementation 'com.github.holgerbrandl:kscript-annotations:1.5'
```
## Example
```kotlin
#!/usr/bin/env kscript
@file:DependsOn("de.mpicbg.scicomp:kutils:0.4")
@file:DependsOn("com.beust:klaxon:0.24", "com.github.kittinunf.fuel:fuel:1.3.1")
@file:Import("util.kt")
@file:EntryPoint("Foo.bar") // applies on for kt-files
// define kotlin options
@file:KotlinOptions("-J-Xmx5g")
@file:KotlinOptions("-J-server")
print("1+1")
```