Is there a standard recipe for this?
I am using some scala code built by sbt as a dependency on another java project build by maven, so I want to take advantage of my cached local maven repo.
Thanks
-- CKKL
override def managedStyle = ManagedStyle.Mavenlazy val publishTo = Resolver.file("your local repo", new java.io.File("path/to/m2/repo"))Viktor Klang came up with a pretty sweet trick [1] that uses dropbox if you are sharing with others and don't have a hosted maven repo
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
I just tried maven-sbt
https://github.com/codahale/maven-sbt
and it is great, but I was wondering if there could be some specific configuration to be placed in my project definition.
-- CKKL
--
__~O
-\ <, Christos KK Loverdos
(*)/ (*) http://ckkloverdos.com
lazy val publishRemote = propertyOptional[Boolean](false, true)
val local = Resolver.file("Local", Path.userHome / ".m2" / "repository"
asFile)
val remote = "Remote" at "http://somewhere.com/repo"
override def defaultPublishRepository =
if (!publishRemote.value) Some(local) else Some(remote)
Thus:
"sbt 'set publish.remote false' publish" // goes to local
"sbt 'set publish.remote true' publish" // goes to remote
You can use the system property to switch too :)
- Indrajit
Many thanx for your answers.
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>
--
publish-m2