well i have a kotlin project and it uses gradle-ko...
# announcements
well i have a kotlin project and it uses gradle-kotlin plugin the thing it uses this plugin to run / configure kotlin not sure what is the equivalent of kotlinc via this as CI fails to run
Not quite sure what you’re asking. Are you trying to run
directly in CI?
afaik the kotlinc cant be used in CI as they are using gradle-kotlin plugin to run things.
The gradle kotlin plugin does a lot more than just run kotlinc. Gradle downloads dependencies, the kotlin plugin configures the classpath to pass to kotlinc so it can see all the dependencies, and if you have any other compile options configured via gradle (in a
block), it converts those to arguments to the compiler. Why are you trying to run kotlinc in CI directly, instead of just running gradle? For example, the default Travis CI script for Android projects will run
./gradlew build
(and maybe
You can run kotlinc directly if you really want to, but you would have to do everything that gradle and the gradle kotlin plugin are doing manually, so I’m not sure why you’d want to.
ill give the snippet
@Zach Klippenstein (he/him) [MOD]
for now i can download the kotlinc and compile but the plugin already does this , how to use that? as this will not get past review 😉
got a working solution for this thanks.