mirror of https://github.com/sbt/sbt.git
Merge 77eb17a4f0 into b3b1a3477e
This commit is contained in:
commit
dca834c801
|
|
@ -286,11 +286,12 @@ object Defaults extends BuildCommon with DefExtra {
|
|||
csrCacheDirectory := LMCoursier.defaultCacheLocation,
|
||||
csrSameVersions :== Nil,
|
||||
stagingDirectory := (ThisBuild / baseDirectory).value / "target" / "sona-staging",
|
||||
sonaBundleDirectory := (ThisBuild / baseDirectory).value / "target" / "sona-bundle",
|
||||
localStaging := Some(Resolver.file("local-staging", stagingDirectory.value)),
|
||||
sonaBundle := Publishing
|
||||
.makeBundle(
|
||||
stagingDirectory.value.toPath(),
|
||||
((ThisBuild / baseDirectory).value / "target" / "sona-bundle" / "bundle.zip").toPath()
|
||||
(sonaBundleDirectory.value / "bundle.zip").toPath()
|
||||
)
|
||||
.toFile(),
|
||||
sonaBundle / aggregate :== false,
|
||||
|
|
|
|||
|
|
@ -677,6 +677,8 @@ object Keys {
|
|||
@transient
|
||||
val stagingDirectory = settingKey[File]("Local staging directory for Sonatype publishing").withRank(CSetting)
|
||||
@transient
|
||||
private[sbt] val sonaBundleDirectory = settingKey[File]("Local bundle directory for Sonatype publishing").withRank(DSetting)
|
||||
@transient
|
||||
val sonaBundle = taskKey[File]("Local bundle for Sonatype publishing").withRank(DTask)
|
||||
val localStaging = settingKey[Option[Resolver]]("Local staging resolver for Sonatype publishing").withRank(CSetting)
|
||||
val sonaDeploymentName = settingKey[String]("The name used for deployment").withRank(DSetting)
|
||||
|
|
|
|||
|
|
@ -226,6 +226,9 @@ private[sbt] object Clean {
|
|||
case d: DiskActionCacheStore => d.clear()
|
||||
case _ => ()
|
||||
IO.delete(outputDirectory.toFile())
|
||||
val extracted = Project.extract(s)
|
||||
IO.delete(extracted.get(Keys.stagingDirectory))
|
||||
IO.delete(extracted.get(Keys.sonaBundleDirectory))
|
||||
IO.delete(
|
||||
s.configuration
|
||||
.provider()
|
||||
|
|
|
|||
Loading…
Reference in New Issue