{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/4453","repository_url":"https://api.github.com/repos/sbt/sbt","labels_url":"https://api.github.com/repos/sbt/sbt/issues/4453/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/4453/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/4453/events","html_url":"https://github.com/sbt/sbt/issues/4453","id":381792636,"node_id":"MDU6SXNzdWUzODE3OTI2MzY=","number":4453,"title":"Interaction between 'crossPaths := false' and '+publish'","user":{"login":"erikerlandson","id":259898,"node_id":"MDQ6VXNlcjI1OTg5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/259898?v=4","gravatar_id":"","url":"https://api.github.com/users/erikerlandson","html_url":"https://github.com/erikerlandson","followers_url":"https://api.github.com/users/erikerlandson/followers","following_url":"https://api.github.com/users/erikerlandson/following{/other_user}","gists_url":"https://api.github.com/users/erikerlandson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikerlandson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikerlandson/subscriptions","organizations_url":"https://api.github.com/users/erikerlandson/orgs","repos_url":"https://api.github.com/users/erikerlandson/repos","events_url":"https://api.github.com/users/erikerlandson/events{/privacy}","received_events_url":"https://api.github.com/users/erikerlandson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T23:10:42Z","updated_at":"2019-01-02T20:59:58Z","closed_at":"2019-01-02T20:59:58Z","author_association":"NONE","body":"- [x ] I've read the [CONTRIBUTING](https://github.com/sbt/sbt/blob/develop/CONTRIBUTING.md) guidelines\r\n\r\n## steps\r\nDefined a `build.sbt` that has one sub-project that is java-only, and so I have set `crossPaths := false` for that project to publish artifacts without scala version (this part works).\r\n\r\nIf I publish with only a single `scalaVersion`, this works OK. However, if I have multiple versions in `crossScalaVersions`, I will get an error when it tries to invoke `publish` on this java sub-project a second time. Because it is now attempting to publish artifacts with the same names as previously, due to `crossPaths := false`.\r\n\r\nSetting `publishConfiguration := publishConfiguration.value.withOverwrite(true)` works, but this is not great because it's re-generating artifacts multiple times, and over-write isn't safe.\r\n\r\nSo what I'm looking for is something that is logically similar to `skip in publish := false`, but is `true` for exactly one scala version, and only in the java sub-project.\r\n\r\n\r\n\r\n## problem\r\n\r\n\r\n\r\n## expectation\r\n\r\n\r\n\r\n## notes\r\n\r\nsbt version: *insert sbt version*\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/450983297","html_url":"https://github.com/sbt/sbt/issues/4453#issuecomment-450983297","issue_url":"https://api.github.com/repos/sbt/sbt/issues/4453","id":450983297,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDk4MzI5Nw==","user":{"login":"eed3si9n","id":184683,"node_id":"MDQ6VXNlcjE4NDY4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/184683?v=4","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T20:59:58Z","updated_at":"2019-01-02T20:59:58Z","author_association":"MEMBER","body":"Please see https://www.scala-sbt.org/1.x/docs/Cross-Build.html#Cross+building+with+a+Java+project"}}
{"actor":{"display_login":"eed3si9n"}}