summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMathias <mathias@spray.cc>2011-05-06 11:11:37 +0200
committerMathias <mathias@spray.cc>2011-05-06 11:11:37 +0200
commit0ce9cf8fce1dc475f3bb2a517e0a7698c9e0a5d9 (patch)
tree62de608642a30ec478411d27e94179ec64c5bd17 /project
downloadspray-json-0ce9cf8fce1dc475f3bb2a517e0a7698c9e0a5d9.tar.gz
spray-json-0ce9cf8fce1dc475f3bb2a517e0a7698c9e0a5d9.tar.bz2
spray-json-0ce9cf8fce1dc475f3bb2a517e0a7698c9e0a5d9.zip
Initial commit (split off from main spray codebase)
Diffstat (limited to 'project')
-rw-r--r--project/build.properties6
-rw-r--r--project/build/Project.scala75
-rw-r--r--project/idea.properties2
-rw-r--r--project/plugins/Plugins.scala26
4 files changed, 109 insertions, 0 deletions
diff --git a/project/build.properties b/project/build.properties
new file mode 100644
index 0000000..aa9d84d
--- /dev/null
+++ b/project/build.properties
@@ -0,0 +1,6 @@
+project.organization=cc.spray
+project.name=spray-json
+sbt.version=0.7.5
+project.version=1.0.0-SNAPSHOT
+build.scala.versions=2.8.1
+project.initialize=false
diff --git a/project/build/Project.scala b/project/build/Project.scala
new file mode 100644
index 0000000..3cee9c3
--- /dev/null
+++ b/project/build/Project.scala
@@ -0,0 +1,75 @@
+import sbt._
+import Process._
+
+class Project(info: ProjectInfo) extends DefaultProject(info) {
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // All repositories *must* go here! See ModuleConfigurations below.
+ // -------------------------------------------------------------------------------------------------------------------
+ object Repositories {
+ // e.g. val AkkaRepo = MavenRepository("Akka Repository", "http://akka.io/repository")
+ }
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // ModuleConfigurations
+ // Every dependency that cannot be resolved from the built-in repositories (Maven Central and Scala Tools Releases)
+ // must be resolved from a ModuleConfiguration. This will result in a significant acceleration of the update action.
+ // Therefore, if repositories are defined, this must happen as def, not as val.
+ // -------------------------------------------------------------------------------------------------------------------
+ import Repositories._
+ val parboiledModuleConfig = ModuleConfiguration("org.parboiled", ScalaToolsSnapshots)
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // Dependencies
+ // -------------------------------------------------------------------------------------------------------------------
+ val parboiledC = "org.parboiled" % "parboiled-core" % "0.12.0-SNAPSHOT" % "compile" withSources()
+ val parboiledS = "org.parboiled" % "parboiled-scala" % "0.12.0-SNAPSHOT" % "compile" withSources()
+
+ val specs = "org.scala-tools.testing" %% "specs" % "1.6.7" % "test" withSources()
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // Options
+ // -------------------------------------------------------------------------------------------------------------------
+ override def compileOptions = super.compileOptions ++ Seq("-deprecation", "-encoding", "utf8").map(CompileOption(_))
+ override def documentOptions: Seq[ScaladocOption] = documentTitle(name + " " + version) :: Nil
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // Publishing
+ // -------------------------------------------------------------------------------------------------------------------
+ //val publishTo = Resolver.file("Spray Test Repo", new File("/Users/mathias/Documents/spray/test-repo/"))
+ val publishTo = "Scala Tools Snapshots" at "http://nexus.scala-tools.org/content/repositories/snapshots/"
+ //val publishTo = "Scala Tools Releases" at "http://nexus.scala-tools.org/content/repositories/releases/"
+
+ Credentials(Path.userHome / ".ivy2" / ".credentials", log)
+ override def managedStyle = ManagedStyle.Maven
+ override def packageDocsJar = defaultJarPath("-scaladoc.jar")
+ override def packageSrcJar = defaultJarPath("-sources.jar")
+ val sourceArtifact = Artifact(artifactID, "src", "jar", Some("sources"), Nil, None)
+ val docsArtifact = Artifact(artifactID, "docs", "jar", Some("scaladoc"), Nil, None)
+ override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageDocs, packageSrc)
+
+ override def pomExtra = (
+ <name>spray JSON</name>
+ <url>http://spray.cc/</url>
+ <inceptionYear>2011</inceptionYear>
+ <description>A Scala library for easy and idiomatic JSON (de)serialization</description>
+ <licenses>
+ <license>
+ <name>Apache 2</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <developers>
+ <developer>
+ <id>sirthias</id>
+ <name>Mathias Doenitz</name>
+ <timezone>+1</timezone>
+ <email>mathias [at] spray.cc</email>
+ </developer>
+ </developers>
+ <scm>
+ <url>http://github.com/spray/spray-json/</url>
+ </scm>
+ )
+}
diff --git a/project/idea.properties b/project/idea.properties
new file mode 100644
index 0000000..6716523
--- /dev/null
+++ b/project/idea.properties
@@ -0,0 +1,2 @@
+include.sbt.project.definition.module = false
+excluded.folders = .idea,lib_managed,target,test-output \ No newline at end of file
diff --git a/project/plugins/Plugins.scala b/project/plugins/Plugins.scala
new file mode 100644
index 0000000..a599287
--- /dev/null
+++ b/project/plugins/Plugins.scala
@@ -0,0 +1,26 @@
+import sbt._
+
+class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // All repositories *must* go here! See ModuleConigurations below.
+ // -------------------------------------------------------------------------------------------------------------------
+ object Repositories {
+ // e.g. val akkaRepo = MavenRepository("Akka Repository", "http://akka.io/repository")
+ }
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // ModuleConfigurations
+ // Every dependency that cannot be resolved from the built-in repositories (Maven Central and Scala Tools Releases)
+ // must be resolved from a ModuleConfiguration. This will result in a significant acceleration of the update action.
+ // Therefore, if repositories are defined, this must happen as def, not as val.
+ // -------------------------------------------------------------------------------------------------------------------
+ import Repositories._
+ //e.g. lazy val akkaModuleConfig = ModuleConfiguration("se.scalablesolutions.akka", akkaRepo)
+
+ // -------------------------------------------------------------------------------------------------------------------
+ // Plugins
+ // -------------------------------------------------------------------------------------------------------------------
+ // e.g. val akkaPlugin = "se.scalablesolutions.akka" % "akka-sbt-plugin" % "1.0"
+
+}