Skip to content

asdf-community/asdf-kotlin

Repository files navigation

asdf-kotlin Build

kotlin (and kotlin-native if available) plugin for asdf version manager

Contents

Dependencies

Install

Plugin:

asdf plugin add kotlin
# or
asdf plugin add kotlin https://github.com/asdf-community/asdf-kotlin.git

kotlin:

# Show all installable versions
asdf list-all kotlin

# Install specific version
asdf install kotlin latest

# Set a version globally (on your ~/.tool-versions file)
asdf global kotlin latest

# Now kotlin commands are available
kotlin -help

Check the asdf readme for instructions on how to install & manage versions of kotlin.

Contributing

Contributions of any kind welcome! See the contributing guide.

Thanks goes to these contributors!

Issues

  • Doesn't check if java is installed

License

MIT License

Tests

Github Actions

Note: See workflows

  • It tests installing a version of kotlin without kotlin native (Version 1.0.3) on mac and linux
  • It tests installing a version of kotlin with kotlin native (Version 1.3.21) on mac and linux
  • It tests installing a version of kotlin with new kotlin native naming (Version 1.4.30-RC) on mac and linux
  • It tests installing a version of kotling with new kotlin native naming that includes arch (Version 1.5.30-M1) on mac and linux
  • It tests installing latest version of kotlin on mac and linux

Locally with Docker Compose

Note: Only tests linux (Ubuntu 22.04) and takes a while since it builds on every run

  • cd /path/to/this/repo

  • docker compose up --force-recreate --abort-on-container-exit

    Creating asdf-kotlin-linux-test ... done
    Attaching to asdf-kotlin-linux-test
    asdf-kotlin-linux-test | Cloning into '/home/build/.asdf'...
    ...
    asdf-kotlin-linux-test |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    asdf-kotlin-linux-test |                                  Dload  Upload   Total   Spent    Left  Speed
    100   621    0   621    0     0   1673      0 --:--:-- --:--:-- --:--:--  1673
    100 75.5M  100 75.5M    0     0  11.1M      0  0:00:06  0:00:06 --:--:-- 13.6M
    asdf-kotlin-linux-test | Setting kotlin 1.0.3 as the default value in ~/.tool-versions
    asdf-kotlin-linux-test | Confirming version 1.0.3
    asdf-kotlin-linux-test | Kotlin version 1.0.3 (JRE 11.0.1+13)
    asdf-kotlin-linux-test | Setting kotlin 1.3.21 as the default value in ~/.tool-versions
    asdf-kotlin-linux-test | Confirming version 1.3.21
    asdf-kotlin-linux-test | Kotlin version 1.3.21-release-158 (JRE 11.0.1+13)
    asdf-kotlin-linux-test | info: kotlinc-native 1.3.21 (JRE 11.0.1+13)
    asdf-kotlin-linux-test exited with code 0

About

Kotlin plugin for the asdf version manager

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published