Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sbt._
- import Keys._
- import org.sbtidea._
- import SbtIdeaPlugin._
- import Scope.{GlobalScope, ThisScope}
- // val nexus = "http://nexus.scala-tools.org/content/repositories/"
- //object AkkaDemoBuild extends Build {
- object BuildSettings {
- val buildOrganization = "com.orsa"
- val buildScalaVersion = "2.9.0-1"
- val buildVersion = "1.0-SNAPSHOT"
- val buildSettings = Defaults.defaultSettings ++
- Seq (
- organization := buildOrganization,
- scalaVersion := buildScalaVersion,
- version := buildVersion,
- parallelExecution := false,
- //retrieveManaged := true,
- moduleConfigurations ++= Resolvers.moduleConfigurations,
- javacOptions ++= Seq("-Xlint:unchecked"),
- scalacOptions ++= Seq("-deprecation", "-unchecked", "-Xcheckinit", "-encoding", "utf8")
- )
- }
- //[error] {file:/C:/home/projects/akkademo/}AkkaDemo/*:update: sbt.ResolveException: unresolved dependency:
- // org.guiceyfruit#guice-all;2.0: not found
- //[error] unresolved dependency: voldemort.store.compress#h2-lzf;1.0: not found
- //[error] unresolved dependency: org.codehaus.aspectwerkz#aspectwerkz;2.2.3: not found
- object Resolvers {
- val jnaResolver = "jna" at "http://download.java.net/maven/2/"
- val maven2Resolver = "maven2" at "http://repo1.maven.org/maven2"
- // Akka
- //val akkaResolver = "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
- val akkaResolver = "Akka Repository" at "http://akka.io/repository"
- // JNA
- val maven2jnaResolver = "java.net-maven2-repository" at "java-net:/maven2-repository/trunk/repository/"
- val sgineResolver = "scala-tools.org-nexus-public-snapshots" at "http://nexus.scala-tools.org/content/repositories/public-snapshots/"
- //http://nexus.scala-tools.org/content/repositories/releases/
- val GuiceyFruitRepo = "Guicey fruit repo" at "http://guiceyfruit.googlecode.com/svn/repo/releases/"
- //val CodehausRepo = "Codehaus Repo" at "http://repository.codehaus.org"
- val lwjglRepo = "lwjgl" at "http://adterrasperaspera.com/lwjgl"
- val sbtIdeaResolver = "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
- val db4oResolver = "source.db4o" at "http://source.db4o.com/maven"
- val moduleConfigurations = Seq(
- ModuleConfiguration("se.scalablesolutions.akka", akkaResolver),
- ModuleConfiguration("net.java.dev.jna", jnaResolver),
- ModuleConfiguration("net.java.dev.jna", maven2Resolver),
- ModuleConfiguration("org.apache.felix", maven2Resolver),
- ModuleConfiguration("org.osgi", maven2Resolver),
- ModuleConfiguration("org.sgine", sgineResolver),
- ModuleConfiguration("org.lwjgl", lwjglRepo),
- ModuleConfiguration("voldemort.store.compress", akkaResolver),
- ModuleConfiguration("org.guiceyfruit", GuiceyFruitRepo),
- ModuleConfiguration("org.codehaus.aspectwerkz", akkaResolver),
- ModuleConfiguration("com.github.mpeltonen", sbtIdeaResolver),
- ModuleConfiguration("com.db4o", db4oResolver)
- )
- }
- object Dependencies {
- val akkaVersion = "1.1.3"
- def akka(name: String) = "se.scalablesolutions.akka" % "akka-%s".format(name) % akkaVersion
- val akka = "se.scalablesolutions.akka" % "akka" % akkaVersion
- val akkaActor = akka("actor")
- val akkaCamel = akka("camel")
- val akkaStm = akka("stm")
- val jna = "net.java.dev.jna" % "jna" % "3.2.7"
- val felixFramework = "org.apache.felix" % "org.apache.felix.framework" % "3.2.2"
- val felixMain = "org.apache.felix" % "org.apache.felix.main" % "3.2.2"
- val osgiCore = "org.osgi" % "org.osgi.core" % "4.2.0"
- val osgiCompendium = "org.osgi" % "org.osgi.compendium" % "4.2.0"
- val sgine = "org.sgine" %% "sgine-ui" % "1.0-SNAPSHOT"
- val db4o = "com.db4o" % "db4o-full-java5" % "8.1-SNAPSHOT"
- val sbtIdea = "com.github.mpeltonen" %% "sbt-idea" % "0.10.0"
- // Use ehcache for the images as they will be created and destroyed, but we dont have enough ram to keep them all around
- // @todo val ehcache = "net.sf.ehcache" % "ehcache" % "2.4.3"
- // Use db4o for normal data objects, blobs are stored in normal files http://stackoverflow.com/questions/964053/saving-images-or-pdfs-in-db4o
- // Use neo4j for highly connected data
- //val sgine7 = "org.sgine" % "sgine-ui_2.9.0-1" % "1.0-SNAPSHOT"
- //val sgine7 = "org.sgine" %% "sgine-ui" % "1.0-SNAPSHOT"
- // [error] {file:/C:/home/projects/akkademo/}AkkaDemo/*:update: sbt.ResolveException: unresolved dependency:
- // org.lwjgl#lwjgl;2.7.1: not found
- }
- object AkkaDemoBuild extends Build {
- import Resolvers._
- import Dependencies._
- import BuildSettings._
- lazy val root = Project ("AkkaDemo", file("."), settings = buildSettings ++ Seq (
- libraryDependencies := web ))
- val web = Seq (akka, akkaActor, akkaCamel, akkaStm, jna, felixFramework, felixMain, osgiCore, osgiCompendium, db4o,
- sgine)
- // val jna = "net.java.dev.jna" % "jna" % "3.2.7"
- // val felixFramework = "org.apache.felix" % "org.apache.felix.framework" % "3.2.2"
- // val felixMain = "org.apache.felix" % "org.apache.felix.main" % "3.2.2"
- // val osgiCore = "org.osgi" % "org.osgi.core" % "4.2.0"
- // val osgiCompendium = "org.osgi" % "org.osgi.compendium" % "4.2.0"
- }
- /*
- http://stackoverflow.com/questions/6566470/how-to-add-sbteclipse-pluging-to-sbt-0-10-x
- lazy val AkkaRepo = "Akka Repository" at "http://akka.io/repository"
- lazy val CodehausRepo = "Codehaus Repo" at "http://repository.codehaus.org"
- lazy val GuiceyFruitRepo = "GuiceyFruit Repo" at "http://guiceyfruit.googlecode.com/svn/repo/releases/"
- lazy val JBossRepo = "JBoss Repo" at "http://repository.jboss.org/nexus/content/groups/public/"
- lazy val JavaNetRepo = "java.net Repo" at "http://download.java.net/maven/2"
- lazy val SonatypeSnapshotRepo = "Sonatype OSS Repo" at "http://oss.sonatype.org/content/repositories/releases"
- lazy val GlassfishRepo = "Glassfish Repo" at "http://download.java.net/maven/glassfish"
- lazy val ScalaToolsRelRepo = "Scala Tools Releases Repo" at "http://scala-tools.org/repo-releases"
- lazy val DatabinderRepo = "Databinder Repo" at "http://databinder.net/repo"
- lazy val ScalaToolsSnapshotRepo = "Scala-Tools Snapshot Repo" at "http://scala-tools.org/repo-snapshots"
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement