File tree 1 file changed +7
-0
lines changed
plugin/src/main/scala/com/typesafe/dbuild/plugin 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,12 @@ object DBuildRunner {
382
382
def fixInterProjectResolver2 =
383
383
fixGeneric2(Keys .projectResolver, " Disabling inter-project resolver" ) { _ map { _ => new RawRepository (new ProjectResolver (" inter-project" , Map .empty)) } }
384
384
385
+ // Some projects or plugins modify the "publish" task (for instance, to use Bintray),
386
+ // but we need the task to point to the standard definition, so that we can publish
387
+ // the files to the local directories
388
+ def fixStandardPublish2 =
389
+ fixGeneric2(Keys .publish, " Resetting publish task" ) { _ map { _ => sbt.Classpaths .publishTask(Keys .publishConfiguration, Keys .deliver) } }
390
+
385
391
// alternate version, which only removes the artifacts that are not part
386
392
// of the selected subprojects. Might be more suitable for setupcmd; in this case,
387
393
// local-publish-repo should not be added to the list of resolvers.
@@ -666,6 +672,7 @@ object DBuildRunner {
666
672
667
673
private def preparePublishSettings (in : BuildInput , log : ConsoleLogger , oldSettings : Seq [Setting [_]]) =
668
674
Seq [Fixer ](
675
+ fixStandardPublish2,
669
676
fixPublishTos2(in.outRepo.getAbsoluteFile),
670
677
fixPGPs2,
671
678
fixVersions2(in)) flatMap { _(oldSettings, log) }
You can’t perform that action at this time.
0 commit comments