{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/633","labels_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/633/comments","events_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/633/events","html_url":"https://github.com/sbt/sbt-native-packager/issues/633","id":98160416,"number":633,"title":"use case: single project, multiple apps","user":{"login":"wookietreiber","id":827088,"avatar_url":"https://avatars.githubusercontent.com/u/827088?v=3","gravatar_id":"","url":"https://api.github.com/users/wookietreiber","html_url":"https://github.com/wookietreiber","followers_url":"https://api.github.com/users/wookietreiber/followers","following_url":"https://api.github.com/users/wookietreiber/following{/other_user}","gists_url":"https://api.github.com/users/wookietreiber/gists{/gist_id}","starred_url":"https://api.github.com/users/wookietreiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wookietreiber/subscriptions","organizations_url":"https://api.github.com/users/wookietreiber/orgs","repos_url":"https://api.github.com/users/wookietreiber/repos","events_url":"https://api.github.com/users/wookietreiber/events{/privacy}","received_events_url":"https://api.github.com/users/wookietreiber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt-native-packager/labels/feature%20request","name":"feature request","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T12:44:33Z","updated_at":"2015-07-31T07:55:04Z","closed_at":null,"body":"As I understand it, from a cursory reading of your documentation, sbt-native-packager considers only a single main class and will create only a single script invoking that main class, is that correct?\r\n\r\nThe use case I am currently pondering on is having a single project with multiple main classes, i.e. multiple distinct apps, each of which should get its own script, e.g.:\r\n\r\n```scala\r\npackage foobar\r\n\r\nobject foo extends App with Library with Util\r\nobject bar extends App with Library with Util\r\n\r\ntrait Library\r\ntrait Util\r\n```\r\n\r\nSupposed to be deployed result:\r\n\r\n```\r\nbin/foo\r\nbin/bar\r\nlib/project.jar\r\n```\r\n\r\nEach of the scripts in `bin` uses the same `lib/project.jar` only with a different main class.\r\n\r\nIs this possible to achieve right now? If not: Is sbt-native-packager able to be extended to support this use case?"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/comments/126598294","html_url":"https://github.com/sbt/sbt-native-packager/issues/633#issuecomment-126598294","issue_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/633","id":126598294,"user":{"login":"muuki88","id":647727,"avatar_url":"https://avatars.githubusercontent.com/u/647727?v=3","gravatar_id":"","url":"https://api.github.com/users/muuki88","html_url":"https://github.com/muuki88","followers_url":"https://api.github.com/users/muuki88/followers","following_url":"https://api.github.com/users/muuki88/following{/other_user}","gists_url":"https://api.github.com/users/muuki88/gists{/gist_id}","starred_url":"https://api.github.com/users/muuki88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muuki88/subscriptions","organizations_url":"https://api.github.com/users/muuki88/orgs","repos_url":"https://api.github.com/users/muuki88/repos","events_url":"https://api.github.com/users/muuki88/events{/privacy}","received_events_url":"https://api.github.com/users/muuki88/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T07:55:04Z","updated_at":"2015-07-31T07:55:04Z","body":"@metasim can you put your snippet [here](https://github.com/sbt/sbt-native-packager/wiki/Helpful-Snippets)? At some point we can move parts from there to the docs."}}