mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
pkg(kotlin-1.4.31): Added kotlin 1.4.31
This commit is contained in:
parent
56adb6123c
commit
a5ba0f5ee6
6 changed files with 31 additions and 0 deletions
10
packages/kotlin/1.4.31/build.sh
vendored
Executable file
10
packages/kotlin/1.4.31/build.sh
vendored
Executable 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
4
packages/kotlin/1.4.31/compile
vendored
Normal 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
4
packages/kotlin/1.4.31/environment
vendored
Normal 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
6
packages/kotlin/1.4.31/metadata.json
vendored
Normal 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
4
packages/kotlin/1.4.31/run
vendored
Normal 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
3
packages/kotlin/1.4.31/test.kt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
fun main() {
|
||||
println("OK")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue