teryret
teryret

Reputation: 577

How can I make an SBT build for multi-projects and multi-platforms?

I'm starting on a medium project with many independent components that can run either on Android or the JVM and I'm wondering how to break it into SBT projects so that the dependencies behave nicely. Here's what I've got so far:

core/ for platform agnostic core code, must not break on either platform, this includes interfaces for component launchers

android-core/ for implementations of the core interfaces that depend on android libraries (note, this project depends on sbt-android)

jvm-core/ for implementations of the core interfaces that depend on libraries that don't play well with or depend on android

So far so good, but now it's time to consume the core projects in the individual components. My requirements are:

Some of the questions I have are:

Basically I'm looking for wisdom and experience, the nitty gritty code I'm sure I can hack my way through once I know what terms to search the docs to understand and roughly how the whole thing wants to hang together. Thanks for your help!

Upvotes: 1

Views: 78

Answers (0)

Related Questions