sbt-typelevel
sbt-typelevel copied to clipboard
auto-detect and set `licenses` sbt setting based on `LICENSE` or `LICENSE.txt` file
Currently it is defaulted to Apache. https://github.com/typelevel/sbt-typelevel/blob/2e825717aa73582cc5ac4e79021b9a479bec40c4/core/src/main/scala/org/typelevel/sbt/TypelevelPlugin.scala#L65
It's doable from the github api, if nothing else https://docs.github.com/en/rest/licenses/licenses?apiVersion=2022-11-28#get-the-license-for-a-repository