Created
December 17, 2012 21:44
-
-
Save schleichardt/4322572 to your computer and use it in GitHub Desktop.
answer for stackoverflow http://stackoverflow.com/questions/13921168/how-to-get-application-path-in-dependency-resolvers/13922654#13922654
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "so13921168" | |
val appVersion = "1.0-SNAPSHOT" | |
val appDependencies = Seq( | |
"info.schleichardt" %% "play-2-mailplugin" % "0.6.1" | |
) | |
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings( | |
/* | |
Stackoverflow question was: | |
How to get application path in dependency resolvers? | |
have local maven repository in repo subdirectory. Need to point to that directory in resolver path, but examples below doesn't work. How to get application path in this config ? | |
*/ | |
resolvers <+= baseDirectory { base => | |
"local maven repo" at ("file://" + base.getAbsolutePath + "/repo") | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment