{"action":"created","issue":{"url":"https://api.github.com/repos/bodar/jcompilo/issues/5","labels_url":"https://api.github.com/repos/bodar/jcompilo/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bodar/jcompilo/issues/5/comments","events_url":"https://api.github.com/repos/bodar/jcompilo/issues/5/events","html_url":"https://github.com/bodar/jcompilo/issues/5","id":93295159,"number":5,"title":"Packaging with Jarjar? (Feature request?)","user":{"login":"tomwscott","id":250299,"avatar_url":"https://avatars.githubusercontent.com/u/250299?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwscott","html_url":"https://github.com/tomwscott","followers_url":"https://api.github.com/users/tomwscott/followers","following_url":"https://api.github.com/users/tomwscott/following{/other_user}","gists_url":"https://api.github.com/users/tomwscott/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwscott/subscriptions","organizations_url":"https://api.github.com/users/tomwscott/orgs","repos_url":"https://api.github.com/users/tomwscott/repos","events_url":"https://api.github.com/users/tomwscott/events{/privacy}","received_events_url":"https://api.github.com/users/tomwscott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-06T14:38:54Z","updated_at":"2015-11-25T14:48:30Z","closed_at":null,"body":"Is it possible / recommended / planned for jcompilo to package a project with a specified list of runtime dependencies à la uberjar or jarjar?\r\n\r\nHas this been done elsewhere that can be provided as an example?"},"comment":{"url":"https://api.github.com/repos/bodar/jcompilo/issues/comments/159629854","html_url":"https://github.com/bodar/jcompilo/issues/5#issuecomment-159629854","issue_url":"https://api.github.com/repos/bodar/jcompilo/issues/5","id":159629854,"user":{"login":"danielbodart","id":123496,"avatar_url":"https://avatars.githubusercontent.com/u/123496?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbodart","html_url":"https://github.com/danielbodart","followers_url":"https://api.github.com/users/danielbodart/followers","following_url":"https://api.github.com/users/danielbodart/following{/other_user}","gists_url":"https://api.github.com/users/danielbodart/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbodart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbodart/subscriptions","organizations_url":"https://api.github.com/users/danielbodart/orgs","repos_url":"https://api.github.com/users/danielbodart/repos","events_url":"https://api.github.com/users/danielbodart/events{/privacy}","received_events_url":"https://api.github.com/users/danielbodart/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T14:48:30Z","updated_at":"2015-11-25T14:48:30Z","body":"Sorry for lack in progress, anyway I think I might have had a eureka moment.\r\n\r\nHow about if we pre-process the internal dependencies, so when you use JCompilo to download the dependency it transforms the java bytecode (and source) at download time. Then we compile as normal but our source code will reference the internal class names and then we just copy the files into the jar.\r\n\r\nPros:\r\n * Faster - only transform when downloading dependency (instead of each time you compile)\r\n * Easier to debug source code as the internal dependencies now match the source code you publish\r\n * Any problems with the transformation should be debuggable and testable in your IDE as it just works with the post processed jars.\r\n * Very easy to implement and parallelisable.\r\n\r\nCons:\r\n * No support for publishing 2 libs, one with embedded deps and one without"}}