I am getting started with a small app written in scala with lift on cloudbees. At the moment there is no scala involved, I just want to deploy a website in the static folder of the lift template. I created a build job on cloudbees with sbt but it gives the following error:
[error] {file:/scratch/jenkins/workspace/igem%20sbt/project/}default-81f689/*:update:
sbt.ResolveException: unresolved dependency: com.github.siasia#xsbt-web-plugin_2.9.1;0.12.0-0.2.11.1: not found
I can compile the app (also fetched from git) on my local machine via sbt->package and deploy it to cloudbees via “bees app:deploy”. The files are also available on the workspace from git.
I use sbt 0.12 on my local machine and 0.11.3 on cloudbees (/opt/sbt/sbt-launch-0.11.3-2.jar). That is because I don’t know how to find out which is the latest version on cloudbees or how i can use my own jar of sbt on cloudbees. I also don’t know which config files I have to edit to adjust for 0.11.3 or if this is is the error after all. If I have to change that I also need to know how do downgrade on my local machine (OS X -> use homebrew).
Here the full error and my build.sbt: http://pastebin.com/bwAu1hGr
SBT is pretty brittle when it comes to plugin versions. A separate jar of each plugin needs to be published for each SBT version, similar to Scala cross building. If you are using different versions of SBT to build in different environments, that means that you either need to
Personally, I’d just standardize on a particular SBT version for your project and add the sbt-launch.jar file to your project along with a script that references it. I haven’t done much with Cloudbees, but with Jenkins you can configure an SBT launcher with a value like: ${WORKSPACE}/sbt-launch.jar. That assumes that sbt-launch.jar is in the root of your git repo.