Merge pull request #3760 from mpollmeier/mpollmeier/resolver-not-needed-if-not-publishing

don't require publishTo specified if publishArtifact is `false`
This commit is contained in:
Dale Wijnand 2017-12-21 15:40:17 +00:00 committed by GitHub
commit fd8b422488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 2 deletions

View File

@ -1937,8 +1937,10 @@ object Classpaths {
if (isSnapshot.value) "integration" else "release",
ivyConfigurations.value.map(c => ConfigRef(c.name)).toVector,
packagedArtifacts.in(publish).value.toVector,
checksums.in(publish).value.toVector,
getPublishTo(publishTo.value).name,
checksums.in(publish).value.toVector, { //resolvername: not required if publishTo is false
val publishToOption = publishTo.value
if (publishArtifact.value) getPublishTo(publishToOption).name else "local"
},
ivyLoggingLevel.value,
isSnapshot.value
)

View File

@ -0,0 +1,12 @@
[@mpollmeier]: https://github.com/mpollmeier
[#3760]: https://github.com/sbt/sbt/pull/3760
### Fixes with compatibility implications
### Improvements
### Bug fixes
- Remove requirement on `publishTo` if `publishArtifact` is false. [#3760][] by [@mpollmeier][]

View File

@ -0,0 +1,3 @@
// this is supposed to do nothing, and more importantly: not fail
// https://github.com/sbt/sbt/pull/3760
publishArtifact := false

View File

@ -0,0 +1 @@
> publish