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

missing jar for one sbt module #1530

Closed
yanns opened this issue Dec 30, 2022 · 1 comment
Closed

missing jar for one sbt module #1530

yanns opened this issue Dec 30, 2022 · 1 comment

Comments

@yanns
Copy link
Contributor

yanns commented Dec 30, 2022

Expected behaviour

Given the build.sbt:

lazy val core = (project in file("modules/core"))
  .settings(
    name := "Reference Expansion Prototype",
  )

lazy val sphere = (project in file("modules/sphere"))
  .dependsOn(core)
  .settings(
    libraryDependencies += sphereJson
  )

lazy val root = (project in file("."))
  .aggregate(core, sphere)
  .dependsOn(core, sphere)
  .settings(
    name := "Reference Expansion Prototype"
  )
  .enablePlugins(JavaAppPackaging)

When I use stage, inside target/universal/stage/lib/, I can find the jar file for the root project, the jar file for the sphere project. But I cannot find any jar file for the core project.

This is very strange. I cannot find why.
A clean does not help.

Information

  • sbt-native-packager 1.9.11
  • sbt version 1.8.0
  • build system: MacOS
  • package: JavaAppPackaging
  • target system: jar
@yanns
Copy link
Contributor Author

yanns commented Jan 3, 2023

I found the issue.
As the core and the root modules have the same name, they both produce the same jar file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant