Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cypressious/kotlinw
A small wrapper for the Kotlin compiler that can be used to execute .kts scripts
https://github.com/cypressious/kotlinw
kotlin kotlin-compiler kotlin-script wrapper
Last synced: 2 months ago
JSON representation
A small wrapper for the Kotlin compiler that can be used to execute .kts scripts
- Host: GitHub
- URL: https://github.com/cypressious/kotlinw
- Owner: cypressious
- Created: 2015-12-01T23:13:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T12:55:38.000Z (almost 8 years ago)
- Last Synced: 2024-04-16T11:45:28.276Z (9 months ago)
- Topics: kotlin, kotlin-compiler, kotlin-script, wrapper
- Language: Kotlin
- Size: 57.6 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KotlinW
A small wrapper for the Kotlin compiler that can be used to execute `.kts` scripts inspired by gradlew and similar wrappers that
download the actual binaries.
More information regarding `.kts` scripts can be found [here](https://kotlinlang.org/docs/tutorials/command-line.html#using-th
e-command-line-to-run-scripts).## Build instructions
Call `gradlew build`. This will generate a minified jar with all dependencies and a launch script for Windows. Contributions
for a Linux launch script are welcome.## Usage
After building the minified jar, on Windows use the launch script and call `kotlinw myScript.kts`. On any other platform,
call `java -jar kotlinw-minified-1.0-SNAPSHOT.jar myScript.kts`.
This will download the latest version of the Kotlin compiler and the stdlib and will execute your script.