Revert "don't require publishTo specified if publishArtifact is `false`"

This reverts commit 4668faff7c.
Ref https://github.com/sbt/sbt/pull/3760
Ref https://github.com/sbt/sbt/pull/4931
This commit is contained in:
Eugene Yokota 2019-08-08 00:36:36 -04:00
parent 294a1c181e
commit ec6cf15f12
4 changed files with 2 additions and 20 deletions

View File

@ -2338,10 +2338,8 @@ 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, { //resolvername: not required if publishTo is false
val publishToOption = publishTo.value
if (publishArtifact.value) getPublishTo(publishToOption).name else "local"
},
checksums.in(publish).value.toVector,
getPublishTo(publishTo.value).name,
ivyLoggingLevel.value,
isSnapshot.value
)

View File

@ -1,12 +0,0 @@
[@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

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

View File

@ -1 +0,0 @@
> publish