Don't publish to the Maven repository from SBT.
We need SBT to publish to the local Ivy repository, so that we can reference snapshots from other SBT projects. Pulling a snapshot from the local Maven repository just doesn't seem to work with SBT+Ivy.
This commit is contained in:
@@ -25,10 +25,3 @@ unmanagedResourceDirectories in Compile <+= baseDirectory / "src/main/java"
|
||||
|
||||
// work around SBT bug
|
||||
unmanagedResources in Compile ~= (_.filterNot(_.isDirectory))
|
||||
|
||||
// this hackery causes publish-local to install to ~/.m2/repository instead of ~/.ivy
|
||||
otherResolvers := Seq(Resolver.file("dotM2", file(Path.userHome + "/.m2/repository")))
|
||||
|
||||
publishLocalConfiguration <<= (packagedArtifacts, deliverLocal, ivyLoggingLevel) map {
|
||||
(arts, _, level) => new PublishConfiguration(None, "dotM2", arts, level)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user