Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #73 from AlexNisnevich/an-split
Browse files Browse the repository at this point in the history
Upgrade to sbt 1.2; split into epic-core and epic-html packages
  • Loading branch information
dlwh committed Jul 18, 2019
2 parents f275baa + 6afd394 commit 5e46b5c
Show file tree
Hide file tree
Showing 381 changed files with 42 additions and 54 deletions.
44 changes: 26 additions & 18 deletions build.sbt
@@ -1,6 +1,6 @@
import sbt.Keys._
import Version._
import com.typesafe.sbt.osgi.SbtOsgi._
// import com.typesafe.sbt.osgi.SbtOsgi._

lazy val extra = <url>http://scalanlp.org/</url>
<licenses>
Expand Down Expand Up @@ -30,8 +30,7 @@ val VersionRegex = "v([0-9]+.[0-9]+.[0-9]+)-?(.*)?".r
lazy val commonSettings = Seq(
organization := "org.scalanlp",
version := "0.4.4",

/*
/*
git.baseVersion := "0.4",
// append -SNAPSHOT unless we're on a branch
git.gitUncommittedChanges := false,//git.gitCurrentTags.value.isEmpty,
Expand All @@ -45,16 +44,12 @@ lazy val commonSettings = Seq(
}
},
*/

scalaVersion := Version.scala,
crossScalaVersions := Seq("2.12.1", "2.11.8"),
libraryDependencies ++= Seq(
Library.breeze,
Library.breezeConfig,
Library.mapdb,
Library.tikaParsers % "compile,optional",
Library.boilerpipe,
Library.nekohtml,
Library.slf4jSimple,
Library.commonsLang3,
Library.jflex,
Expand All @@ -64,13 +59,13 @@ lazy val commonSettings = Seq(
),
scalacOptions ++= Seq("-deprecation", "-language:_", "-optimize"),
javaOptions += "-Xmx6g",
javaOptions += "-Xrunhprof:cpu=samples,depth=12",
//javaOptions += "-Xrunhprof:cpu=samples,depth=12",
fork := true,
publishMavenStyle := true,
pomExtra := extra,
publishTo <<= isSnapshot { (v: Boolean) =>
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (v)
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
Expand All @@ -90,8 +85,11 @@ lazy val commonSettings = Seq(
case Some((2, scalaMajor)) if scalaMajor >= 11 => Seq("org.scala-lang.modules" %% "scala-xml" % "1.0.6")
case _ => Seq.empty
})

) ++ sbtjflex.SbtJFlexPlugin.jflexSettings ++ net.virtualvoid.sbt.graph.Plugin.graphSettings ++
) ++ sbtjflex.SbtJFlexPlugin.jflexSettings
// ++ net.virtualvoid.sbt.graph.Plugin.graphSettings

// TODO rewrite in sbt 1.x syntax
/* ++
IndexedSeq (
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
Expand All @@ -102,19 +100,29 @@ lazy val commonSettings = Seq(
case x => old(x)
}
}
)



)*/

lazy val epicCore = project
.in(file("."))
.in(file("modules/core"))
//.enablePlugins(GitVersioning)
.settings(commonSettings: _*)
.settings(commonSettings)
.settings(
name := "epic"
//,
//OsgiKeys.privatePackage := Seq(),
//OsgiKeys.importPackage := Seq("org.apache.tika.*; resolution:=optional", "*"),
//OsgiKeys.exportPackage := Seq("epic.*")
)

lazy val epicHtml = project
.in(file("modules/html"))
.dependsOn(epicCore)
.settings(
commonSettings,
name := "epic-html",
libraryDependencies ++= Seq(
Library.tikaParsers,
Library.boilerpipe,
Library.nekohtml,
)
)
File renamed without changes.

0 comments on commit 5e46b5c

Please sign in to comment.