Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for source dependencies between cross-projects #102

Open
paulp opened this issue Jul 31, 2018 · 0 comments
Open

Better support for source dependencies between cross-projects #102

paulp opened this issue Jul 31, 2018 · 0 comments

Comments

@paulp
Copy link

paulp commented Jul 31, 2018

Here's what I came up with:

def zioUri      = uri("git://github.com/scalaz/scalaz-zio.git#7f27e9cbc3")
lazy val zioJVM = ProjectRef(zioUri, "coreJVM")
lazy val zioJS  = ProjectRef(zioUri, "coreJS")

lazy val base = crossProject(JSPlatform, JVMPlatform)
  .jvmConfigure(_ dependsOn zioJVM)
  .jsConfigure(_ dependsOn zioJS)
  ...

But with a bit of support here, I think it could look like

lazy val zio = CrossProjectRef(
  uri("git://github.com/scalaz/scalaz-zio.git#7f27e9cbc3"),
  Map(JSPlatform -> "coreJS", JVMPlatform -> "coreJVM")
)
lazy val base = crossProject(JSPlatform, JVMPlatform)
  .dependsOn(zio)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants