how will i run kotlinc command by using gradle-kot...
# announcements
c
how will i run kotlinc command by using gradle-kotlin plugin
e
If you add the Kotlin gradle plugin it will automatically build your Kotlin code from
src/main/kotlin
by default during any gradle task that requires compilation
If you want to bootstrap a Kotlin gradle project you can do so either through IntelliJ via the “gradle” project type (I recommend using the kotlin DSL) or via the command line with
gradle init
which should have a “kotlin” project type
c
want to run a set of kotlin files during configuration phase
e
Looks like the better way to go would be using BuildSrc so you can just directly implement gradle tasks in kotlin and hook them into the lifecycle of other tasks: https://kotlinexpertise.com/execute-kotlin-scripts-with-gradle/
1
That way everything stays in Gradle rather than calling out to an external process
c
tbh im already using buildSrc