sbt / sbt-native-packager

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

how to add compileOrder to do the packaging. #1631

Closed macinux closed 2 months ago

macinux commented 3 months ago

in my build.sbt file, we define the compileOrder like this so sbt can compile the java files first and then Scala.

Compile / compileOrder := CompileOrder.JavaThenScala

But this setting not working for set-native-packager, or I don't know how I can let sbt-native-packager pick this setting. The result is sbt-native-packager can not build the package even the compile from sbt works.

Thanks in advance.

James

muuki88 commented 2 months ago

Hi @macinux

Thanks for your question. Compiling is done before any of sbt-native-packager tasks are executed. Can you share a small project that demonstrates the issue?