Skip to content
A small wrapper for the Kotlin compiler that can be used to execute .kts scripts
Branch: master
Clone or download
Latest commit 00d7cd0 Jan 20, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper setup project with dependencies Dec 1, 2015
src/main/java/com/cypressworks/kotlinw
.gitignore setup project with dependencies Dec 1, 2015
README.md Create README.md Dec 2, 2015
build.gradle upgrade for 1.1-M04 and fix build Dec 22, 2016
foo.kts setup project with dependencies Dec 1, 2015
gradle.properties upgrade to 1.1 beta Jan 20, 2017
gradlew setup project with dependencies Dec 1, 2015
gradlew.bat setup project with dependencies Dec 1, 2015
settings.gradle setup project with dependencies Dec 1, 2015

README.md

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.

You can’t perform that action at this time.