Skip to content

Add Kotlin #3687

@LouisCAD

Description

@LouisCAD

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions