2 * Copyright 2011 GRNET S.A. All rights reserved.
4 * Redistribution and use in source and binary forms, with or
5 * without modification, are permitted provided that the following
8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following
12 * 2. Redistributions in binary form must reproduce the above
13 * copyright notice, this list of conditions and the following
14 * disclaimer in the documentation and/or other materials
15 * provided with the distribution.
17 * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
18 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT l TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
21 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
24 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
25 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
27 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
30 * The views and conclusions contained in the software and
31 * documentation are those of the authors and should not be
32 * interpreted as representing official policies, either expressed
33 * or implied, of GRNET S.A.
38 class Aquarium(info: ProjectInfo) extends DefaultProject(info) {
40 final val akka = "1.3.1"
41 final val lift = "2.4"
42 final val maybe = "0.3.0"
45 def akkaModule(what: String): String = "akka-%s".format(what)
47 def liftModule(what: String): String = "lift-%s".format(what)
50 def akka(what: String) = "se.scalablesolutions.akka" % akkaModule(what) % Versions.akka
52 def lift(what: String) = "net.liftweb" %% liftModule(what) % Versions.lift
55 override def compileOptions = super.compileOptions ++
63 .map(CompileOption(_))
65 override def testOptions =
67 Seq(TestArgument(TestFrameworks.JUnit, "-q", "-v"))
69 override def packageDocsJar = defaultJarPath("-javadoc.jar")
71 override def packageSrcJar = defaultJarPath("-sources.jar")
73 val sourceArtifact = Artifact.sources(artifactID)
74 val docsArtifact = Artifact.javadoc(artifactID)
76 override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageDocs, packageSrc)
78 override def packageAction = super.packageAction dependsOn test
80 override def managedStyle = ManagedStyle.Maven
82 val localDestRepo = Resolver.file("maven-local", Path.userHome / ".m2" / "repository" asFile)
84 override def parallelExecution = false
86 val repo0 = "aquarium nexus" at "http://aquarium.dev.grnet.gr:8081/nexus/content/groups/public"
87 val repo1 = "java.net.maven2" at "http://download.java.net/maven/2/"
88 val repo2 = "EclipseLink Repo" at "http://download.eclipse.org/rt/eclipselink/maven.repo"
89 val repo3 = "jboss" at "http://repository.jboss.org/nexus/content/groups/public/"
90 val repo4 = "sonatype" at "http://oss.sonatype.org/content/groups/public/"
91 val repo5 = "jcrontab" at "http://kenai.com/projects/crontab-parser/sources/maven-repo/content/"
92 val repo6 = "typsafe" at "http://repo.typesafe.com/typesafe/releases/"
93 val repo7 = "akka" at "http://akka.io/repository/"
94 val repo8 = "twitter" at "http://maven.twttr.com"
95 val repo9 = "tools-snapshots" at "http://scala-tools.org/repo-snapshots"
96 val repoA = "tools-releases" at "http://scala-tools.org/repo-releases"
97 val repoB = "sonatype-snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
98 val repoC = "jboss scala-tools" at "https://repository.jboss.org/nexus/content/repositories/scala-tools-releases"
99 val repoD = "spray" at "http://repo.spray.cc/"
101 val lib_slf4j = "org.slf4j" % "slf4j-api" % "1.6.1" withSources()
103 val lib_liftjson = Deps.lift("json") withSources()
104 val lib_liftjsonX = Deps.lift("json-ext") withSources()
106 val lib_akka_actor = Deps.akka("actor") withSources()
107 val lib_akka_remote = Deps.akka("remote") withSources()
108 val lib_akka_test = Deps.akka("testkit") % "test" withSources()
109 val lib_akka_amqp = Deps.akka("rabbitmq") withSources()
111 val lib_yaml = "org.yaml" % "snakeyaml" % "1.9" withSources()
112 val lib_jcrontab = "com.kenai.crontab-parser" % "crontab-parser" % "1.0.1" withSources()
113 val lib_xstream = "com.thoughtworks.xstream" % "xstream" % "1.4.1" withSources()
114 val lib_rabbit = "com.rabbitmq" % "rabbitmq-client" % "2.5.0" withSources()
115 val lib_mongo = "org.mongodb" % "mongo-java-driver" % "2.7.2" withSources()
118 // val lib_javaxrs = "javax.ws.rs" % "jsr311-api" % "1.1.1" withSources()
119 val lib_spray_can = "cc.spray" % "spray-can" % "0.9.3" withSources()
121 val lib_maybe = "com.ckkloverdos" %% "maybe" % Versions.maybe withSources()
122 val lib_converter = "com.ckkloverdos" %% "converter" % "0.3.0" withSources()
123 val lib_sysprop = "com.ckkloverdos" %% "sysprop" % "0.1.0" withSources()
124 val lib_streamresource = "com.ckkloverdos" %% "streamresource" % "0.2.0" withSources()
125 val lib_jbootstrap = "com.ckkloverdos" % "jbootstrap" % "3.0.0" withSources()
127 val lib_lucene_core = "org.apache.lucene" % "lucene-core" % "3.5.0" withSources()
128 val lib_solr_core = "org.apache.solr" % "solr-core" % "3.5.0" withSources()
130 val lib_scopt = "com.github.scopt" %% "scopt" % "2.0.1" withSources()
132 val lib_joda = "joda-time" % "joda-time" % "2.0" withSources()
133 val lib_joda_conv = "org.joda" % "joda-convert" % "1.1" withSources()
135 val lib_test = "com.novocode" % "junit-interface" % "0.7" % "test->default"
137 val lib_guava = "com.google.guava" % "guava" % "11.0.2" withSources()