Slackbot
10/07/2022, 1:01 PMVampire
10/07/2022, 1:06 PMbuildSrc
, both works perfectly fine here in regards to IntelliJ. Can you throw together a quick MCVE that shows red for you so I can see whether it shows red here too or whether it is a problem local to your environment?Christoph Sturm
10/07/2022, 1:15 PMVampire
10/07/2022, 1:24 PMChristoph Sturm
10/07/2022, 1:25 PMVampire
10/07/2022, 1:28 PMidea
plugin so that the source is configured as generated source root.
You can mark it manually, yes.
I would have expected that a reimport overwrites it, yes.
But from a quick try it indeed survived the reimport.Vampire
10/07/2022, 1:28 PMidea
plugin configuration if you don't mind having IDE specific config in your build scriptChristoph Sturm
10/07/2022, 1:34 PMChristoph Sturm
10/20/2022, 8:34 AMVampire [3:06 PM]
While I prefer the build logic in an included build instead ofbtw what do you mean by that? included build as in includeBuild as in composite build? can you point me to an example project?buildSrc
Vampire
10/20/2022, 9:19 AMbtw what do you mean by that? included build as in includeBuild as in composite build?yes
can you point me to an example project?While there are many out there , I don't have one "at hand" right now. But what do you need an example for? It's basically not more than renaming
buildSrc
to something different, for example build-logic
or gradle/build-logic
or whatever you like and adding an includeBuild
to your settings script.
One slight difference is, that you do not get type-safe accessors for the plugins anymore but have to apply them by ID, or you have to have a settings plugin (even a no-op) to get them with an included build.Christoph Sturm
10/20/2022, 11:34 AMChristoph Sturm
10/21/2022, 5:59 PMidea {
module {
generatedSourceDirs.add(File(buildDir, "generated-sources/dsl-accessors/kotlin"))
}
}
but it does not seem to workChristoph Sturm
10/25/2022, 2:22 PMVampire
10/25/2022, 2:44 PM