libraries.scala 8.32 KB
Newer Older
1
package root
Mark Hammons's avatar
Changes    
Mark Hammons committed
2

3
4
import sbt._
import Keys._
5
import com.typesafe.sbt.osgi.OsgiKeys
6
import OsgiKeys._
7
import root.libraries._
8
9
10
11
12
13
14
15

/**
 * Created with IntelliJ IDEA.
 * User: luft
 * Date: 3/17/13
 * Time: 6:50 PM
 * To change this template use File | Settings | File Templates.
 */
16
object Libraries extends Defaults {
17
18
19
  val dir = file("libraries")

  lazy val all = Project(id = "openmole-libraries",
20
    base = file("libraries")) aggregate (jetty, scalatra, logback, h2, bonecp, slick, slf4j, xstream, icu4j, groovy,
21
      objenesis, scalaLang, Apache.all, jodaTime, gnuCrypto, db4o, jasypt, robustIt, netlogo4, netlogo5, opencsv,
markhammons's avatar
markhammons committed
22
      netlogo4_noscala, netlogo5_noscala, gridscale, guava, jsyntaxpane, gral, miglayout, netbeans, mgo, jline, jacksonJson)
Mark Hammons's avatar
Changes    
Mark Hammons committed
23

24
25
  lazy val jetty = OsgiProject("org.eclipse.jetty", exports = Seq("org.eclipse.jetty.*", "javax.*")) settings
    (libraryDependencies ++= Seq("org.eclipse.jetty" % "jetty-webapp" % "8.1.8.v20121106",
26
      "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016"))
27

28
29
30
  lazy val scalatra = OsgiProject("org.scalatra",
    buddyPolicy = Some("global"),
    exports = Seq("org.scalatra.*, org.fusesource.*"),
markhammons's avatar
markhammons committed
31
    privatePackages = Seq("!scala.*", "!org.slf4j.*", "!org.json4s", "*")) settings
32
33
34
35
36
    (libraryDependencies ++= Seq("org.scalatra" %% "scalatra" % "2.2.1",
      "org.scalatra" %% "scalatra-scalate" % "2.2.1",
      "org.scalatra" %% "scalatra-json" % "2.2.1")) dependsOn (slf4j)

  lazy val jacksonJson = OsgiProject("org.json4s") settings (
markhammons's avatar
markhammons committed
37
38
    libraryDependencies += "org.json4s" %% "json4s-jackson" % "3.2.4",
    exportPackage += "com.fasterxml.*"
39
  )
40

41
42
  lazy val logback = OsgiProject("ch.qos.logback", exports = Seq("ch.qos.logback.*", "org.slf4j.impl")) settings
    (libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.0.9")
43

44
45
  lazy val h2 = OsgiProject("org.h2", buddyPolicy = Some("global"), privatePackages = Seq("META-INF.*")) settings
    (libraryDependencies += "com.h2database" % "h2" % "1.3.170")
46

47
48
  lazy val bonecp = OsgiProject("com.jolbox.bonecp", buddyPolicy = Some("global")) settings
    (libraryDependencies += "com.jolbox" % "bonecp" % "0.8.0-rc1")
49

50
51
  lazy val slick = OsgiProject("com.typesafe.slick", exports = Seq("scala.slick.*")) settings
    (libraryDependencies += "com.typesafe.slick" %% "slick" % "1.0.0")
52
53

  lazy val slf4j = OsgiProject("org.slf4j") settings (libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.2")
54

55
  lazy val xstream = OsgiProject("com.thoughtworks.xstream", buddyPolicy = Some("global"), privatePackages = Seq("!scala.*", "*")) settings
56
57
58
59
60
    (libraryDependencies ++= Seq("com.thoughtworks.xstream" % "xstream" % "1.4.1",
      "net.sf.kxml" % "kxml2" % "2.3.0"))

  lazy val icu4j = OsgiProject("com.ibm.icu") settings (libraryDependencies += "com.ibm.icu" % "icu4j" % "4.0.1")

61
  lazy val groovy = OsgiProject("org.codehaus.groovy", buddyPolicy = Some("global"), exports = Seq("groovy.*", "org.codehaus.*"),
62
    privatePackages = Seq("!scala.*,*")) settings (libraryDependencies ++= Seq("org.codehaus.groovy" % "groovy-all" % "2.0.5",
63
64
65
66
67
68
69
      "org.fusesource.jansi" % "jansi" % "1.2.1"))

  lazy val objenesis = OsgiProject("org.objenesis") settings (libraryDependencies += "org.objenesis" % "objenesis" % "1.2")

  lazy val scalaLang = OsgiProject("org.scala-lang.scala-library", exports = Seq("akka.*", "com.typesafe.*", "scala.*"),
    privatePackages = Seq("*"), buddyPolicy = Some("global")
  ) settings
70
    (libraryDependencies <++= (scalaVersion) { sV 
71
72
73
74
75
76
77
78
79
80
81
82
      Seq("org.scala-lang" % "scala-library" % sV,
        "org.scala-lang" % "scala-reflect" % sV,
        "org.scala-lang" % "scala-actors" % sV,
        "org.scala-lang" % "scala-compiler" % sV,
        "org.scala-lang" % "jline" % sV,
        "com.typesafe.akka" %% "akka-actor" % "2.1.1",
        "com.typesafe.akka" %% "akka-transactor" % "2.1.1",
        "com.typesafe" % "config" % "1.0.0")
    })

  lazy val jodaTime = OsgiProject("org.joda.time") settings (libraryDependencies += "joda-time" % "joda-time" % "1.6")

83
84
85
86
  lazy val gnuCrypto = OsgiProject("org.gnu.crypto") settings (
    libraryDependencies += "org.gnu.crypto" % "gnu-crypto" % "2.0.1",
    exportPackage += "gnu.crypto.*"
  )
87

88
  lazy val jasypt = OsgiProject("org.jasypt.encryption", exports = Seq("org.jasypt.*")) settings (libraryDependencies += "org.jasypt" % "jasypt" % "1.8")
89
90

  lazy val db4o = OsgiProject("com.db4o", buddyPolicy = Some("global")) settings
markhammons's avatar
markhammons committed
91
    (libraryDependencies += "com.db4o" % "db4o-full-java5" % "8.1-SNAPSHOT")
markhammons's avatar
markhammons committed
92
93
94

  lazy val robustIt = OsgiProject("uk.com.robustit.cloning", exports = Seq("com.rits.*")) settings
    (libraryDependencies += "uk.com.robust-it" % "cloning" % "1.7.4")
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

  lazy val netlogo4_noscala = OsgiProject("ccl.northwestern.edu.netlogo4.noscala", exports = Seq("org.nlogo.*"),
    privatePackages = Seq("!scala.*", "*")) settings
    (libraryDependencies ++=
      Seq("ccl.northwestern.edu" % "netlogo" % "4.1.3",
        "org.picocontainer" % "picocontainer" % "2.8",
        "org.objectweb" % "asm" % "3.1",
        "org.objectweb" % "asm-commons" % "3.1"), version := "4.1.3", scalaVersion := "2.8.0")

  lazy val netlogo5_noscala = OsgiProject("ccl.northwestern.edu.netlogo5.noscala", exports = Seq("org.nlogo.*"),
    privatePackages = Seq("!scala.*", "*")) settings
    (libraryDependencies ++=
      Seq("ccl.northwestern.edu" % "netlogo" % "5.0.3",
        "org.picocontainer" % "picocontainer" % "2.8",
        "org.objectweb" % "asm-all" % "3.3.1",
        "org.scala-lang" % "scala-library" % "2.9.2"), version := "5.0.3", scalaVersion := "2.9.2")

  lazy val netlogo4 = OsgiProject("ccl.northwestern.edu.netlogo4", exports = Seq("org.nlogo.*"),
    privatePackages = Seq("*")) settings
    (libraryDependencies ++=
      Seq("ccl.northwestern.edu" % "netlogo" % "4.1.3",
        "org.picocontainer" % "picocontainer" % "2.8",
        "org.objectweb" % "asm" % "3.1",
        "org.objectweb" % "asm-commons" % "3.1"), version := "4.1.3", scalaVersion := "2.8.0")

  lazy val netlogo5 = OsgiProject("ccl.northwestern.edu.netlogo5", exports = Seq("org.nlogo.*"),
    privatePackages = Seq("*")) settings
    (libraryDependencies ++=
      Seq("ccl.northwestern.edu" % "netlogo" % "5.0.3",
124
125
126
        "org.scala-lang" % "scala-library" % "2.9.2",
        "org.objectweb" % "asm-all" % "3.3.1",
        "org.picocontainer" % "picocontainer" % "2.8"), version := "5.0.3", scalaVersion := "2.9.2")
127

128
  lazy val guava = OsgiProject("com.google.guava",
129
130
131
    exports = Seq("com.google.common.*"), privatePackages = Seq("*")) settings (libraryDependencies ++=
      Seq("com.google.guava" % "guava" % "13.0.1", "com.google.code.findbugs" % "jsr305" % "1.3.9")
    )
132

133
134
  lazy val gridscale = OsgiProject("fr.iscpif.gridscale",
    exports = Seq("fr.iscpif.gridscale.*", "net.schmizz.sshj.*", "org.glite.*", "org.globus.*", "org.ogf.*"),
135
    privatePackages = Seq("!scala.*", "!org.slf4j.*", "*")) settings
136
    (libraryDependencies += "fr.iscpif.gridscale" % "gridscale" % "1.39",
137
138
      OsgiKeys.embeddedJars <<= Keys.externalDependencyClasspath in Compile map { deps 
        deps filter (d  d.data.getName startsWith "bcprov") map (d  d.data)
139
      } //TODO make this easier to do using updateReport and filters.
140
    ) dependsOn (slf4j)
141

142
  lazy val jsyntaxpane = OsgiProject("jsyntaxpane", privatePackages = Seq("!scala.*", "*")) settings
143
    (libraryDependencies += "jsyntaxpane" % "jsyntaxpane" % "0.9.6")
144

145
  lazy val gral = OsgiProject("de.erichseifert.gral", privatePackages = Seq("!scala.*", "*")) settings
146
147
    (libraryDependencies += "de.erichseifert.gral" % "gral-core" % "0.9-SNAPSHOT")

148
  lazy val miglayout = OsgiProject("net.miginfocom.swing.miglayout", exports = Seq("net.miginfocom.*")) settings
149
150
    (libraryDependencies += "com.miglayout" % "miglayout" % "3.7.4")

151
  lazy val netbeans = OsgiProject("org.netbeans.api", exports = Seq("org.netbeans.*", "org.openide.*")) settings
152
153
    (libraryDependencies ++= Seq("org.netbeans.api" % "org-netbeans-api-visual" % "RELEASE73",
      "org.netbeans.api" % "org-netbeans-modules-settings" % "RELEASE73"))
154
155

  lazy val mgo = OsgiProject("fr.iscpif.mgo") settings (libraryDependencies <+= scalaVersion { sv  "fr.iscpif" % ("mgo_" + sv) % "1.58" })
156
157

  lazy val opencsv = OsgiProject("au.com.bytecode.opencsv") settings (libraryDependencies += "net.sf.opencsv" % "opencsv" % "2.0")
158

159
  lazy val jline = OsgiProject("net.sourceforge.jline") settings (libraryDependencies += "jline" % "jline" % "0.9.94", exportPackage := Seq("jline.*"))
160
}