Slackbot
06/30/2022, 11:12 PMephemient
06/30/2022, 11:16 PMStylianos Gakis
06/30/2022, 11:26 PMkotlin-dsl one shouldn’t really change the java source/target compatibility and the KotlinCompile jvmTarget? Treading on waters I am really not familiar with over here.
Maybe a bit unrelated, but for a full Kotlin project, I wonder if this is even something one would want to do over just using 8 still. I wonder if there’s any section explaining that.ephemient
06/30/2022, 11:28 PMkotlin-dsl projects would be in a separate build (possibly includeBuild) than your Android projects anywayephemient
06/30/2022, 11:29 PMephemient
06/30/2022, 11:30 PMkotlinDslPluginOptions { jvmTarget.set("11") }. but unless there's a good reason to, I'd just leave the target at 1.8 for all Gradle-related code. it's fine to do that and bump to 11 for projects that target Android or the hostStylianos Gakis
06/30/2022, 11:39 PMincludeBuild("build-logic"), similarly to how now in Android is doing it, I am playing around with convention plugins to learn.
What you are saying makes the most sense, I don’t have a reason why I’d want to target 11 anyway aside from “we’re targeting 11 everything else so I thought I’d do the same here”, but I now understand how it does not apply in this particular case and why I am just not going to do that, thanks a lot!
Back to my side-track before, do you know of any references I can read about what it even means to target java 11 for a Kotlin only project? I couldn’t find any docs regarding that while searching. If not no problem 🙌ephemient
06/30/2022, 11:42 PMephemient
06/30/2022, 11:45 PMStylianos Gakis
06/30/2022, 11:47 PM