mirror of https://github.com/sbt/sbt.git
[2.x] Update project/PublishBinPlugin.scala (#8498)
avoid useCoursier. prepare sbt 2
This commit is contained in:
parent
ebc11f04a7
commit
f31290b809
|
|
@ -35,19 +35,13 @@ object PublishBinPlugin extends AutoPlugin {
|
|||
publishLocalBinConfig := publishLocalBinConfig
|
||||
.dependsOn(
|
||||
// Copied from sbt.internal.
|
||||
Def.taskDyn {
|
||||
val doGen = useCoursier.value
|
||||
if (doGen)
|
||||
Def.task {
|
||||
val currentProject = {
|
||||
val proj = csrProject.value
|
||||
val publications = csrPublications.value
|
||||
proj.withPublications(publications)
|
||||
}
|
||||
IvyXml.writeFiles(currentProject, None, ivySbt.value, streams.value.log)
|
||||
}
|
||||
else
|
||||
Def.task(())
|
||||
Def.task {
|
||||
val currentProject = {
|
||||
val proj = csrProject.value
|
||||
val publications = csrPublications.value
|
||||
proj.withPublications(publications)
|
||||
}
|
||||
IvyXml.writeFiles(currentProject, None, ivySbt.value, streams.value.log)
|
||||
}
|
||||
)
|
||||
.value,
|
||||
|
|
|
|||
Loading…
Reference in New Issue