sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.59k stars 437 forks source link

missing jar for one sbt module #1530

Closed yanns closed 1 year ago

yanns commented 1 year ago

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

yanns commented 1 year ago

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