przemod
przemod

Reputation: 459

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

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?

Upvotes: 1

Views: 104

Answers (0)

Related Questions