From 35c599892aad12b7d83d9be0e27eb7958c876870 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Mon, 14 Jun 2010 10:52:52 +1200 Subject: [PATCH] Added akka-sbt-plugin source --- akka-sbt-plugin/project/build.properties | 6 +++ .../project/build/AkkaPluginProject.scala | 3 ++ .../src/main/scala/AkkaProject.scala | 48 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 akka-sbt-plugin/project/build.properties create mode 100644 akka-sbt-plugin/project/build/AkkaPluginProject.scala create mode 100644 akka-sbt-plugin/src/main/scala/AkkaProject.scala diff --git a/akka-sbt-plugin/project/build.properties b/akka-sbt-plugin/project/build.properties new file mode 100644 index 0000000000..27b9049bf2 --- /dev/null +++ b/akka-sbt-plugin/project/build.properties @@ -0,0 +1,6 @@ +project.name=Akka Plugin +project.organization=se.scalablesolutions.akka +# mirrors akka version +project.version=0.9.1 +sbt.version=0.7.4 +build.scala.versions=2.7.7 diff --git a/akka-sbt-plugin/project/build/AkkaPluginProject.scala b/akka-sbt-plugin/project/build/AkkaPluginProject.scala new file mode 100644 index 0000000000..4c63e9d14f --- /dev/null +++ b/akka-sbt-plugin/project/build/AkkaPluginProject.scala @@ -0,0 +1,3 @@ +import sbt._ + +class AkkaPluginProject(info: ProjectInfo) extends PluginProject(info) diff --git a/akka-sbt-plugin/src/main/scala/AkkaProject.scala b/akka-sbt-plugin/src/main/scala/AkkaProject.scala new file mode 100644 index 0000000000..5ec83204a2 --- /dev/null +++ b/akka-sbt-plugin/src/main/scala/AkkaProject.scala @@ -0,0 +1,48 @@ +import sbt._ + +object AkkaRepositories { + val AkkaRepo = MavenRepository("Akka Repository", "http://scalablesolutions.se/akka/repository") + val GuiceyFruitRepo = MavenRepository("GuiceyFruit Repo", "http://guiceyfruit.googlecode.com/svn/repo/releases/") + val JBossRepo = MavenRepository("JBoss Repo", "https://repository.jboss.org/nexus/content/groups/public/") + val SunJDMKRepo = MavenRepository("Sun JDMK Repo", "http://wp5.e-taxonomy.eu/cdmlib/mavenrepo") + val JavaNetRepo = MavenRepository("java.net Repo", "http://download.java.net/maven/2") +} + +trait AkkaBaseProject extends BasicScalaProject { + import AkkaRepositories._ + + // Every dependency that cannot be resolved from the built-in repositories (Maven Central and Scala Tools Releases) + // is resolved from a ModuleConfiguration. This will result in a significant acceleration of the update action. + + val akkaModuleConfig = ModuleConfiguration("se.scalablesolutions.akka", AkkaRepo) + val netLagModuleConfig = ModuleConfiguration("net.lag", AkkaRepo) + val sbinaryModuleConfig = ModuleConfiguration("sbinary", AkkaRepo) + val redisModuleConfig = ModuleConfiguration("com.redis", AkkaRepo) + val atmosphereModuleConfig = ModuleConfiguration("org.atmosphere", AkkaRepo) + val facebookModuleConfig = ModuleConfiguration("com.facebook", AkkaRepo) + val jsr166xModuleConfig = ModuleConfiguration("jsr166x", AkkaRepo) + val sjsonModuleConfig = ModuleConfiguration("sjson.json", AkkaRepo) + val voldemortModuleConfig = ModuleConfiguration("voldemort.store.compress", AkkaRepo) + val cassandraModuleConfig = ModuleConfiguration("org.apache.cassandra", AkkaRepo) + val guiceyFruitModuleConfig = ModuleConfiguration("org.guiceyfruit", GuiceyFruitRepo) + val jbossModuleConfig = ModuleConfiguration("org.jboss", JBossRepo) + val nettyModuleConfig = ModuleConfiguration("org.jboss.netty", JBossRepo) + val jgroupsModuleConfig = ModuleConfiguration("jgroups", JBossRepo) + val jmsModuleConfig = ModuleConfiguration("javax.jms", SunJDMKRepo) + val jdmkModuleConfig = ModuleConfiguration("com.sun.jdmk", SunJDMKRepo) + val jmxModuleConfig = ModuleConfiguration("com.sun.jmx", SunJDMKRepo) + val jerseyModuleConfig = ModuleConfiguration("com.sun.jersey", JavaNetRepo) + val jerseyContrModuleConfig = ModuleConfiguration("com.sun.jersey.contribs", JavaNetRepo) + val grizzlyModuleConfig = ModuleConfiguration("com.sun.grizzly", JavaNetRepo) + val liftModuleConfig = ModuleConfiguration("net.liftweb", ScalaToolsSnapshots) +} + +trait AkkaProject extends AkkaBaseProject { + val akkaVersion = "0.9.1" + + // convenience method + def akkaModule(module: String) = "se.scalablesolutions.akka" %% ("akka-" + module) % akkaVersion + + // akka core dependency by default + val akkaCore = akkaModule("core") +}