Is there a way to let custom sbt plugin discover which platform a Scala project targets?

102 views Asked by At

I would like to develop an sbt-plugin that would auto-generate sources for Scala projects. The thing is I would like to produce slightly different sources for each targeted platform (JVM, Native, Scala.js).

Because of that, my plugin needs to detect the project platform. I wonder if there is an elegant way of doing that?

0

There are 0 answers