cats icon indicating copy to clipboard operation
cats copied to clipboard

Generate boilerplate in shared sources

Open joroKr21 opened this issue 3 years ago • 3 comments

to a place that works for Intellij

joroKr21 avatar Sep 17 '22 20:09 joroKr21

I wonder if it is possible to change a location of boilerplate source files too. Because currently it is just <root>/project/ which does not seem to be obvious and easy to discover.

satorg avatar Sep 18 '22 00:09 satorg

I wonder if it is possible to change a location of boilerplate source files too. Because currently it is just /project/ which does not seem to be obvious and easy to discover.

Yes, this is possible. Here's how sbt-tl uses its own sources in its build. https://github.com/typelevel/sbt-typelevel/blob/2d044e40474cb1ac94d5c446577e541c59ff743a/project/build.sbt#L20-L26

armanbilge avatar Sep 18 '22 00:09 armanbilge

this seems like an IntelliJ issue that should be fixed instead of worked-around.

I agree it should be fixed in Intellij but I don't see why it means that it shouldn't be worked around.

it's an sbt issue and it should be changed at a higher-level (e.g. sbt-typelevel or sbt itself ideally)

Dunno, I think most projects don't generate boilerplate. This change only makes sense when the generated boilerplate is shared sources in a cross-compiled module. And needs a .gitignore addition as well. So it doesn't seem possible to fix that in sbt.

joroKr21 avatar Sep 26 '22 13:09 joroKr21