1

In my case I run this commands for publish my scala project library:

./activator clean compile
./activator test
./activator publish-local

I need my local library application.conf only for tests.

But I wanna use application.conf of my new project which use this library jar as dependency.

How can I build jar without application.conf?

Marek J
  • 1,364
  • 8
  • 18
  • 33
mkUltra
  • 2,828
  • 1
  • 22
  • 47

1 Answers1

1

Try to add the following to your build.sbt:

mappings in (Compile, packageBin) ~= { (ms: Seq[(File, String)]) =>
  ms filterNot { case (file, dest) =>
    dest.contains("application.conf")
  }
}

This is adapted from another question (removing files from dist task output), but should work here also

Community
  • 1
  • 1
Salem
  • 12,808
  • 4
  • 34
  • 54