I'm trying to add a kotlin script (its in my andro...
# scripting
c
I'm trying to add a kotlin script (its in my android app project FWIW, so kotlin exists in the project), but i dont necessarily have kotlin installed on my machine directly. to use kotlin scripting do i need to install kotlin directly?
p
How do you intend to use the script?
c
so it seems like a kotlin script that can be run and it'll generate yaml for me for github actions. i just can't figure out how to run it. lol
p
The intended, primary usage is to install Kotlin on your machine directly, e. g. via some package managers. Is it a problem in your case? If so, why? (author of github-workflows-kt here, BTW)
c
😅
It's not a problem per se. I have a mac and use brew so I'm assuming I can just install kotlin that way. But if i dont have to install it (and can somehow use kotlin the way that i use it already in android studio) then that'd be preffered (for me) beucase just one less thing on my machine
p
I hear you! However, I haven't thought of an alternative way of providing Kotlin for using with this lib, and I'm open to concrete suggestions! For now I'd suggest installing it with brew, just to see if you like this library
Well, there were some discussions on using the lib via Gradle
And some users do it, I can look it up later
But it's fairly complicated I'd say
c
cool. i originally didn't wanna bring up this library because i just generally wanted to see if i could get kotlin scripts working in a kotlin project. because i can actually see it replacing some bash scripts of mine. lol so it was an overall question. but i will try with this lib now. thanks
👍 1
c
Note that if you don't want to install it directly on your machine, it's easy to get a docker/podman container with just
kotlin
inside it and call it like that