is there a way to automatically apply the kotlin o...
# gradle
t
is there a way to automatically apply the kotlin option
jvmTarget = "1.8
to all submodules?
g
Use
submodules {}
block
t
yes - but i dont know what to put in there 🙈
g
tasks { compileKotlin { kotlinOptions { jvmTarget = "1.8" } } }
t
Thanks! i think i managed to translate it into kotlin dsl 😄
g
it should be the same in kotlin-dsl with type-safe accessors
without type-safe accessors you need: tasks.withType<CompileKotlin> { kotlinOptions { jvmTarget = “1.8” } }
t
yes - the reasons why i'm unsure i made it correctly is: in a multi module project i am mixing submodules that are jvm only with multi platform modules and 2.) still intellij complains about it cannot inlin 1.6 bytecode... whenever i find some minutes of time i try to hunt down this bug 😉
thansk for your help so far!