mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 01:54:17 +02:00
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:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user