Space Automation scripts are Kotlin!

That .space.kts file in your repository describes automation jobs… and it’s Kotlin! Install the Space plugin (https://plugins.jetbrains.com/plugin/13362-space) into your JetBrains IDE, and enjoy the power that brings.

As an example, you can move common logic into functions. Need to send a chat message after build completes? Write a function for it, or use the Extract method refactoring (https://www.jetbrains.com/help/idea/extract-method.html) to move existing script code into a separate function.

Here’s a bonus tip! Have a look at this example of using @file:DependsOn() to reference an external library (https://www.jetbrains.com/help/space/slack.html) and get even more power in your automation!

More about the Space plugin:https://www.jetbrains.com/help/space/space-plugin-for-ide.html

#intellij

Space Tips & Tricks - Use IntelliJ IDEA to write Space Automation scripts
3.40 GEEK