mirror of https://github.com/sbt/sbt.git
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:
parent
294a1c181e
commit
ec6cf15f12
|
|
@ -2338,10 +2338,8 @@ object Classpaths {
|
||||||
if (isSnapshot.value) "integration" else "release",
|
if (isSnapshot.value) "integration" else "release",
|
||||||
ivyConfigurations.value.map(c => ConfigRef(c.name)).toVector,
|
ivyConfigurations.value.map(c => ConfigRef(c.name)).toVector,
|
||||||
packagedArtifacts.in(publish).value.toVector,
|
packagedArtifacts.in(publish).value.toVector,
|
||||||
checksums.in(publish).value.toVector, { //resolvername: not required if publishTo is false
|
checksums.in(publish).value.toVector,
|
||||||
val publishToOption = publishTo.value
|
getPublishTo(publishTo.value).name,
|
||||||
if (publishArtifact.value) getPublishTo(publishToOption).name else "local"
|
|
||||||
},
|
|
||||||
ivyLoggingLevel.value,
|
ivyLoggingLevel.value,
|
||||||
isSnapshot.value
|
isSnapshot.value
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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][]
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
// this is supposed to do nothing, and more importantly: not fail
|
|
||||||
// https://github.com/sbt/sbt/pull/3760
|
|
||||||
publishArtifact := false
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
> publish
|
|
||||||
Loading…
Reference in New Issue