Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kotlin #3687

Closed
4 of 9 tasks
LouisCAD opened this issue Jul 5, 2021 · 7 comments
Closed
4 of 9 tasks

Add Kotlin #3687

LouisCAD opened this issue Jul 5, 2021 · 7 comments
Assignees

Comments

@LouisCAD
Copy link

LouisCAD commented Jul 5, 2021

Tool name

Kotlin

Tool license

Apache 2.0

Add or update?

  • Add
  • Update

Desired version

1.5.20

Approximate size

No response

Brief description of tool

Having Kotlin installed would enable developers to use Kotlin scripts in place of bash scripts.

Startup time of the scripts would be a bit longer, but on the other hand, much more can be done, and much more safely as it's much easier to run logic and abstract things away with Kotlin compared to bash.

Also, the script syntax would be checked before they run by the compiler, unlike bash/shell that will crash at runtime, mid-flight.

URL for tool's homepage

https://kotlinlang.org/docs/command-line.html

Provide a basic test case to validate the tool's functionality.

Run the following script sitting inside a file with executable permission:

#!/usr/bin/env kotlin

println("Hello Kotlin!")

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019

Can this tool be installed during the build?

For Ubuntu, yes as a snap package with the following shell command:

sudo snap install --classic kotlin

Tool installation time in runtime

~10s

Are you willing to submit a PR?

Not at the moment because I'm busy with other OSS projects.

@LeonidLapshin
Copy link
Contributor

Hey, @LouisCAD , we'll consider adding Kotlin to images and return back with the answer soon :)

@LeonidLapshin
Copy link
Contributor

Hi, @LouisCAD
We'll make a PR and add this tool to image soon, all details will be in this issue :)

@LouisCAD
Copy link
Author

LouisCAD commented Jul 6, 2021

@AlenaSviridenko In don't think the "Area: Android" tag is accurate.
Kotlin is to Android what C++ is to Windows: just one of the possible targets.

The "Area: Scripting and command line" and "Area: Common Tools" tags would fit this request better IMO.
The "Area: Java" would also work since many folks run Kotlin in the JVM, and that's the only option for Kotlin scripts for now.

@AlenaSviridenko
Copy link
Contributor

@LouisCAD, thank you for the clarification, updated tags.

@mikhailshaganov
Copy link
Contributor

Hey, PRs for all OS with Kotlin are merged. Mac and Ubuntu have already got an update with Kotlin. Win will get with the next deploy.

@AlenaSviridenko AlenaSviridenko added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Aug 4, 2021
@LouisCAD
Copy link
Author

Hello, is it still awaiting deployment completion, or is the rollout done?

@mikhailshaganov
Copy link
Contributor

hello, the rollout is done, all changes are applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants