{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-onejar/issues/11","repository_url":"https://api.github.com/repos/sbt/sbt-onejar","labels_url":"https://api.github.com/repos/sbt/sbt-onejar/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-onejar/issues/11/comments","events_url":"https://api.github.com/repos/sbt/sbt-onejar/issues/11/events","html_url":"https://github.com/sbt/sbt-onejar/issues/11","id":3855473,"number":11,"title":"Excluding jars","user":{"login":"shuttj","id":903838,"avatar_url":"https://avatars.githubusercontent.com/u/903838?v=3","gravatar_id":"","url":"https://api.github.com/users/shuttj","html_url":"https://github.com/shuttj","followers_url":"https://api.github.com/users/shuttj/followers","following_url":"https://api.github.com/users/shuttj/following{/other_user}","gists_url":"https://api.github.com/users/shuttj/gists{/gist_id}","starred_url":"https://api.github.com/users/shuttj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuttj/subscriptions","organizations_url":"https://api.github.com/users/shuttj/orgs","repos_url":"https://api.github.com/users/shuttj/repos","events_url":"https://api.github.com/users/shuttj/events{/privacy}","received_events_url":"https://api.github.com/users/shuttj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2012-03-28T15:55:34Z","updated_at":"2016-10-20T22:22:21Z","closed_at":"2012-07-02T22:00:46Z","body":"Is there a way to exclude certain lib jars? For example, I don't want to include the scala-library.jar since I am using this in a java only project. Also, I have a library that is needed for compilation only and not at runtime."},"comment":{"url":"https://api.github.com/repos/sbt/sbt-onejar/issues/comments/255244754","html_url":"https://github.com/sbt/sbt-onejar/issues/11#issuecomment-255244754","issue_url":"https://api.github.com/repos/sbt/sbt-onejar/issues/11","id":255244754,"user":{"login":"eric-aldinger","id":11687514,"avatar_url":"https://avatars.githubusercontent.com/u/11687514?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-aldinger","html_url":"https://github.com/eric-aldinger","followers_url":"https://api.github.com/users/eric-aldinger/followers","following_url":"https://api.github.com/users/eric-aldinger/following{/other_user}","gists_url":"https://api.github.com/users/eric-aldinger/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-aldinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-aldinger/subscriptions","organizations_url":"https://api.github.com/users/eric-aldinger/orgs","repos_url":"https://api.github.com/users/eric-aldinger/repos","events_url":"https://api.github.com/users/eric-aldinger/events{/privacy}","received_events_url":"https://api.github.com/users/eric-aldinger/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T22:22:21Z","updated_at":"2016-10-20T22:22:21Z","body":"I found this not to word because of the unmatched parenthesis in front of the old: var. Below works for excluding scoverage when it is added to plugins.sbt. \r\n\r\n'mappings in oneJar <<= (mappings in oneJar).map { depends: Seq[(File, String)] =>\r\n  depends.filterNot(_._1.getName == \"scalac-scoverage-runtime_2.11-1.2.0.jar\") }`\r\n\r\nFor declared dependancies in your build sbt you can append  % \"test\" like protobuffs and ScalaTest below\r\n`libraryDependencies` ++= Seq(\r\n  \"org.json4s\" %% \"json4s-native\" % \"3.4.1\",\r\n  \"org.scalaj\" %% \"scalaj-http\" % \"2.3.0\",\r\n  \"com.rabbitmq\" % \"amqp-client\" % \"3.6.5\",\r\n  \"com.google.protobuf\" % \"protobuf-java\" % \"3.1.0\" % \"test\",\r\n  \"org.scalatest\" %% \"scalatest\" % \"3.0.0\" % \"test\")`"}}
{"actor":{"display_login":"eric-aldinger"}}