{"action":"created","issue":{"url":"https://api.github.com/repos/scalacenter/scalafix/issues/866","repository_url":"https://api.github.com/repos/scalacenter/scalafix","labels_url":"https://api.github.com/repos/scalacenter/scalafix/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/scalacenter/scalafix/issues/866/comments","events_url":"https://api.github.com/repos/scalacenter/scalafix/issues/866/events","html_url":"https://github.com/scalacenter/scalafix/issues/866","id":360276078,"node_id":"MDU6SXNzdWUzNjAyNzYwNzg=","number":866,"title":"scalafixDependencies should support custom resolvers","user":{"login":"olafurpg","id":1408093,"node_id":"MDQ6VXNlcjE0MDgwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1408093?v=4","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"labels":[{"id":615834879,"node_id":"MDU6TGFiZWw2MTU4MzQ4Nzk=","url":"https://api.github.com/repos/scalacenter/scalafix/labels/sbt","name":"sbt","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-14T12:00:23Z","updated_at":"2018-11-08T09:11:52Z","closed_at":null,"author_association":"MEMBER","body":"Currently, sbt-scalafix only supports custom rules that are published to Maven Central but it's not possible to resolve/fetch custom rules from private nexus repositories. It would be great if we can use the new librarymanagement API in sbt 1 to support resolving from private repositories."},"comment":{"url":"https://api.github.com/repos/scalacenter/scalafix/issues/comments/436924266","html_url":"https://github.com/scalacenter/scalafix/issues/866#issuecomment-436924266","issue_url":"https://api.github.com/repos/scalacenter/scalafix/issues/866","id":436924266,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjkyNDI2Ng==","user":{"login":"olafurpg","id":1408093,"node_id":"MDQ6VXNlcjE0MDgwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1408093?v=4","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T09:11:52Z","updated_at":"2018-11-08T09:11:52Z","author_association":"MEMBER","body":"@kamilkloch there's no way to add other public resolvers at the moment, the resolvers are hardcoded here https://github.com/scalacenter/sbt-scalafix/blob/a3c4bf2444b47cd76103964487b3dc6885403673/src/main/scala/scalafix/internal/sbt/ScalafixCoursier.scala#L73 \r\n\r\nIt should be possible to read a `scalafixResolvers.in(ThisBuild)` setting and pass it here https://github.com/scalacenter/sbt-scalafix/blob/a3c4bf2444b47cd76103964487b3dc6885403673/src/main/scala/scalafix/internal/sbt/ScalafixInterface.scala#L15-L18 \r\n\r\nCurrently it's only possible to define maven repositories, but we can extend that in https://github.com/olafurpg/coursier-small/blob/fbb66ac66e3082a9c20992425c16748b4e12040f/small/src/main/scala/com/geirsson/coursiersmall/Repository.scala to support anything coursier supports. sbt-scalafix doesn't use coursier directly to avoid binary conflicts with sbt-coursier."}}
{"actor":{"display_login":"olafurpg"}}