https://github.com/kmpoon/hlta
Revision e498b56128cf1b1f59aa022bba009b13230f15b7 authored by Leonard Poon on 22 October 2020, 06:36:29 UTC, committed by Leonard Poon on 22 October 2020, 06:36:29 UTC
1 parent 3699dcc
Raw File
Tip revision: e498b56128cf1b1f59aa022bba009b13230f15b7 authored by Leonard Poon on 22 October 2020, 06:36:29 UTC
added support to compressed ARFF data files
Tip revision: e498b56
build.sbt
// -*- mode: scala -*-

name := "HLTA"

version := "2.3"

scalaVersion := "2.12.12"

classpathTypes += "maven-plugin"

libraryDependencies ++= 
//  "org.scalatest" %% "scalatest" % "2.2.6" % "test" ::
//  "org.scalactic" %% "scalactic" % "2.2.6" % "test" ::
  "org.scalaz" %% "scalaz-core" % "7.2.26" ::
  "org.apache.commons" % "commons-csv" % "1.2" ::
  "org.apache.commons" % "commons-compress" % "1.18" ::
  "org.apache.commons" % "commons-text" % "1.6" ::
  "commons-io" % "commons-io" % "2.6" ::
  "edu.stanford.nlp" % "stanford-corenlp" % "3.9.1" ::
  ("edu.stanford.nlp" % "stanford-corenlp" % "3.9.1" classifier "models") ::
  "org.slf4j" % "slf4j-simple" % "1.7.25" ::
  "org.rogach" %% "scallop" % "3.1.3" ::
//  "org.apache.spark" %% "spark-core" % "1.6.2" % "provided" ::
//  "org.apache.spark" %% "spark-mllib" % "1.6.2" % "provided" ::
//  "org.jsoup" % "jsoup" % "1.8.3" ::
//  "org.apache.opennlp" % "opennlp-tools" % "1.6.0" ::
//  "org.apache.opennlp" % "opennlp-maxent" % "3.0.3" ::
  "org.apache.pdfbox" % "pdfbox" % "2.0.12" ::
  "colt" % "colt" % "1.2.0" ::
  "nz.ac.waikato.cms.weka" % "weka-stable" % "3.6.13" ::
//  "io.argonaut" %% "argonaut" % "6.1" ::
  "org.json4s" %% "json4s-native" % "3.6.0-M2" ::
  "com.github.tototoshi" %% "scala-csv" % "1.3.5" ::
//  "junit" % "junit" % "4.11" ::
// dependecies for fnlp
  "net.sf.trove4j" % "trove4j" % "3.0.3" ::
  "commons-cli" % "commons-cli" % "1.2" ::
// dependecy for word2vecjava
  "com.google.guava" % "guava" % "20.0" ::
Nil


EclipseKeys.withSource := true

EclipseKeys.withJavadoc := true

javacOptions ++= Seq("-encoding", "UTF-8")

javacOptions ++= Seq("-source", "8", "-target", "8")

// EclipseKeys.eclipseOutput := Some("target")

// Compile the project before generating Eclipse files, so that generated .scala or .class files for views and routes are present
EclipseKeys.preTasks := Seq(compile in Compile)

assemblyJarName in assembly := "HLTA.jar"

assemblyOption in assembly :=
  (assemblyOption in assembly).value.copy(
    includeScala = false, includeDependency = false)

// To skip test during assembly
test in assembly := {}

assemblyMergeStrategy in assembly := {
  case PathList("java_cup", "runtime", xs @ _* )   => MergeStrategy.first
  case PathList("EDU", "oswego", "cs", "dl", xs @ _* )   => MergeStrategy.first
  case PathList("edu","umd","cs","findbugs","annotations", xs @ _* )   => MergeStrategy.first
  case PathList("it","unimi","dsi","fastutil", xs @ _* )   => MergeStrategy.first
  case x =>
    val oldStrategy = (assemblyMergeStrategy in assembly).value
    oldStrategy(x)
}


// unmanagedClasspath in Compile += baseDirectory.value / "FastHLTA" / "bin"

// unmanagedClasspath in Test += baseDirectory.value / "FastHLTA" / "bin"

// unmanagedClasspath in Runtime += baseDirectory.value / "FastHLTA" / "bin"
back to top