pkg(kotlin-1.4.31): Added kotlin 1.4.31

This commit is contained in:
Thomas Hobson 2021-03-14 00:35:15 +13:00
parent 56adb6123c
commit a5ba0f5ee6
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 31 additions and 0 deletions

10
packages/kotlin/1.4.31/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source ../../java/15.0.2/build.sh
curl -L "https://github.com/JetBrains/kotlin/releases/download/v1.4.31/kotlin-compiler-1.4.31.zip" -o kotlin.zip
unzip kotlin.zip
rm kotlin.zip
cp -r kotlinc/* .
rm -rf kotlinc

4
packages/kotlin/1.4.31/compile vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to compile source code, remove this file if the language does not require this stage
kotlinc $* -include-runtime -d code.jar

4
packages/kotlin/1.4.31/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/kotlin/1.4.31/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "kotlin",
"version": "1.4.31",
"aliases": ["kt"],
"author": "Thomas Hobson <git@hexf.me>"
}

4
packages/kotlin/1.4.31/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
java -jar code.jar

3
packages/kotlin/1.4.31/test.kt vendored Normal file
View File

@ -0,0 +1,3 @@
fun main() {
println("OK")
}