Skip to content

Commit

Permalink
Revert "Merge pull request #335 from NICTA/topic/thrift-wire-format"
Browse files Browse the repository at this point in the history
This reverts commit e9b295c, reversing
changes made to b80427e.
  • Loading branch information
etorreborre committed Sep 1, 2014
1 parent 2c5c53f commit c5635b0
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 566 deletions.
53 changes: 14 additions & 39 deletions project/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,49 +52,23 @@ object build extends Build {
id = "scoobi",
base = file("."),
configurations = Configurations.default ++ Seq(repl.Repl),
settings = Seq(name := "scoobi-parent") ++
moduleSettings ++
siteSettings ++
releaseSettings ++
Seq(sourceDirectory := file("ignoreme"))
).aggregate(core, thrift)

lazy val moduleSettings: Seq[Settings] =
Defaults.defaultSettings ++
scoobiSettings ++
buildSettings ++
compilationSettings ++
testingSettings ++
publicationSettings ++
mimaSettings ++
notificationSettings ++
dependencies.resolversSettings ++
repl.settings

lazy val core = Project(
id = "core",
base = file("scoobi-core"),
settings = moduleSettings ++ Seq(
name := "scoobi"
// We're playing games with SBT to avoid having to move everything from 'src' to 'scoobi-core'
, sourceDirectory := baseDirectory.value.getParentFile / "src"
, dependencies.dependencies
, (sourceGenerators in Compile) <+= (sourceManaged in Compile) map GenWireFormat.gen
)
settings = Defaults.defaultSettings ++
scoobiSettings ++
dependencies.settings ++
buildSettings ++
compilationSettings ++
testingSettings ++
siteSettings ++
publicationSettings ++
mimaSettings ++
notificationSettings ++
releaseSettings ++
repl.settings
)

lazy val thrift = Project(
id = "thrift"
, base = file("scoobi-thrift")
, settings = moduleSettings ++ Seq[Settings](
name := "scoobi-thrift"
, libraryDependencies ++= dependencies.thrift ++ dependencies.specs2()
)
)
.dependsOn(core)

lazy val scoobiVersion = SettingKey[String]("scoobi-version", "defines the current Scoobi version")
lazy val scoobiSettings: Seq[Settings] = Seq(
name := "scoobi",
organization := "com.nicta",
scoobiVersion in GlobalScope <<= version,
scalaVersion := "2.11.2",
Expand All @@ -115,6 +89,7 @@ object build extends Build {


lazy val compilationSettings: Seq[Settings] = Seq(
(sourceGenerators in Compile) <+= (sourceManaged in Compile) map GenWireFormat.gen,
incOptions := incOptions.value.withNameHashing(true),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:_"),
scalacOptions in Test ++= Seq("-Yrangepos")
Expand Down
5 changes: 1 addition & 4 deletions project/dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Keys._

object dependencies {

lazy val settings = dependencies ++ resolversSettings
lazy val dependencies = libraryDependencies ++=
scoobi(scalaVersion.value) ++
hadoop(version.value) ++
Expand Down Expand Up @@ -61,10 +62,6 @@ object dependencies {
"org.specs2" %% "specs2-html" % specs2Version ,
"org.specs2" %% "specs2-analysis" % specs2Version ).map(_ % "test")

val thrift = Seq(
"org.apache.thrift" % "libthrift" % "0.9.1"
)

def repl(scalaVersion: String) = Seq(
if (scalaVersion.contains("2.10"))
"org.scala-lang" % "jline" % scalaVersion
Expand Down
4 changes: 1 addition & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.6")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.2.1")

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.3.1")

resolvers += Resolver.sonatypeRepo("releases")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.3.1")
9 changes: 0 additions & 9 deletions scoobi-thrift/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c5635b0

Please sign in to comment.