How to reference external sbt project from another sbt project?

You can do a source dependency on your project like that : lazy val core = RootProject(file(“../CoreLibrary”)) val main = Project(id = “application”, base = file(“.”)).dependsOn(core) I have a working example with a multimodule play build : https://github.com/ahoy-jon/play2MultiModule/blob/master/playapp/project/Build.scala But I think the proper way (it depends of your context) of doing it is to create … Read more

Setting up sbt to use Java 7 for compilation?

The most reliable (perhaps only) way to do this at the moment it to start SBT with java in the JDK7 folder. Modify your sbt launcher script; or use this one that allows you to specify Java Home (and so much more!) as command line options. ~/code/scratch/20111009 sbt -java-home /Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home Starting sbt: invoke with -help … Read more

Idea, sbt, unable to reparse warning

I had the same issue. Did you publish your SNAPSHOT version to your artifactory? If so this might be your problem. As you know when publishing locally your snapshot version is stored in the .ivy2/local directory. The remote version are stored in the .ivy2/cache directory. When looking into the .ivy2/cache/{dependency} folder you will see that … Read more

How to set system properties for runMain on command line?

This works: sbt ‘; set javaOptions += “-Dconfig.resource=../application.conf” ; runMain akka.Main com.my.main.Actor’ If this isn’t a “friendly” enough syntax, wrap it in a little shell script. (Note this assumes you have fork set to true for running. If you don’t, see akauppi’s comment.)

“Unknown artifact. Not resolved or indexed” error for scalatest

If you just added the dependency, it might not have been downloaded yet. Refresh/reimport the project to do so. If it has already been downloaded, press Alt+Enter in IntelliJ on the lines with the warning and select the “update project resolvers’ indexes” quickfix, then select the “local cache” index and click “update”. You can verify … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)