Skip to content

Commit

Permalink
kotlinlang.org
Browse files Browse the repository at this point in the history
  • Loading branch information
and-ri authored and jhheider committed Jul 30, 2023
1 parent bbcb3c7 commit fe03300
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions projects/kotlinlang.org/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
distributable:
url: https://github.com/JetBrains/kotlin/releases/download/v{{version}}/kotlin-compiler-{{version}}.zip
strip-components: 1
versions:
github: JetBrains/kotlin
dependencies:
openjdk.org: '*'
build:
working-directory: kotlinc
script:
- mkdir -p {{prefix}}/bin
- install bin/* {{prefix}}/bin/
- mkdir -p {{prefix}}/lib
- install lib/* {{prefix}}/lib/
- install build.txt {{prefix}}/
- rm {{prefix}}/bin/*.bat
provides:
- bin/kapt
- bin/kotlin
- bin/kotlin-dce-js
- bin/kotlinc
- bin/kotlinc-js
- bin/kotlinc-jvm
test:
script:
- kotlin -version | grep {{version}}
- kotlinc test.kt -include-runtime -d test1.jar
- java -jar test1.jar | grep "Hello World!"
- kotlinc-jvm test.kt -include-runtime -d test2.jar
- java -jar test2.jar | grep "Hello World!"
3 changes: 3 additions & 0 deletions projects/kotlinlang.org/test.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fun main() {
println("Hello World!")
}

0 comments on commit fe03300

Please sign in to comment.