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