-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20751c3
commit e28378e
Showing
21 changed files
with
380 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ target | |
release.md | ||
*.csv | ||
.task | ||
.bsp | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
Global / scalaVersion := "2.13.6" | ||
|
||
lazy val CirceVersion = "0.14.1" | ||
lazy val CirceGenericExtrasVersion = "0.14.1" | ||
lazy val ElasticsearchVersion = "8.4.2" | ||
lazy val Elastic4sVersion = "8.0.0" | ||
lazy val ElastiknnVersion = IO.read(file("version")).strip() | ||
lazy val LuceneVersion = "9.3.0" | ||
|
||
lazy val ScalacOptions = List("-Xfatal-warnings", "-Ywarn-unused:imports") | ||
|
||
lazy val `elastiknn-root` = project | ||
.in(file(".")) | ||
.settings( | ||
name := "elastiknn-root" | ||
) | ||
.aggregate( | ||
`elastiknn-api4s`, | ||
`elastiknn-client-elastic4s`, | ||
`elastiknn-lucene`, | ||
`elastiknn-models`, | ||
`elastiknn-plugin`, | ||
`elastiknn-testing` | ||
) | ||
|
||
lazy val `elastiknn-api4s` = project | ||
.in(file("elastiknn-api4s")) | ||
.settings( | ||
name := "api4s", | ||
version := ElastiknnVersion, | ||
libraryDependencies ++= Seq( | ||
"org.elasticsearch" % "elasticsearch-x-content" % ElasticsearchVersion | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) | ||
|
||
lazy val `elastiknn-client-elastic4s` = project | ||
.in(file("elastiknn-client-elastic4s")) | ||
.dependsOn(`elastiknn-api4s`) | ||
.settings( | ||
name := "client-elastic4s", | ||
version := ElastiknnVersion, | ||
libraryDependencies ++= Seq( | ||
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % Elastic4sVersion | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) | ||
|
||
lazy val `elastiknn-lucene` = project | ||
.in(file("elastiknn-lucene")) | ||
.dependsOn(`elastiknn-models`) | ||
.settings( | ||
name := "lucene", | ||
version := ElastiknnVersion, | ||
libraryDependencies ++= Seq( | ||
"org.apache.lucene" % "lucene-core" % LuceneVersion | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) | ||
|
||
lazy val `elastiknn-models` = project | ||
.in(file("elastiknn-models")) | ||
.settings( | ||
name := "models", | ||
version := ElastiknnVersion, | ||
javacOptions ++= Seq( | ||
// Needed for @ForceInline annotation. | ||
"--add-exports", | ||
"java.base/jdk.internal.vm.annotation=ALL-UNNAMED" | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) | ||
|
||
import ElasticsearchPluginPlugin.autoImport._ | ||
|
||
lazy val `elastiknn-plugin` = project | ||
.in(file("elastiknn-plugin")) | ||
.enablePlugins(ElasticsearchPluginPlugin) | ||
.dependsOn( | ||
`elastiknn-api4s`, | ||
`elastiknn-lucene` | ||
) | ||
.settings( | ||
name := "elastiknn", | ||
version := ElastiknnVersion, | ||
elasticsearchPluginName := "elastiknn", | ||
elasticsearchPluginClassname := "com.klibisz.elastiknn.ElastiknnPlugin", | ||
elasticsearchPluginDescription := "...", | ||
elasticsearchPluginVersion := ElastiknnVersion, | ||
elasticsearchVersion := ElasticsearchVersion, | ||
libraryDependencies ++= Seq( | ||
"com.google.guava" % "guava" % "28.1-jre", | ||
"com.google.guava" % "failureaccess" % "1.0.1" | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) | ||
|
||
lazy val `elastiknn-testing` = project | ||
.in(file("elastiknn-testing")) | ||
.dependsOn(`elastiknn-client-elastic4s`, `elastiknn-plugin`) | ||
.settings( | ||
Test / parallelExecution := false, | ||
libraryDependencies ++= Seq( | ||
"io.circe" %% "circe-generic-extras" % CirceGenericExtrasVersion, | ||
"io.circe" %% "circe-parser" % CirceVersion, | ||
"org.apache.lucene" % "lucene-core" % LuceneVersion, | ||
"org.elasticsearch" % "elasticsearch" % ElasticsearchVersion, | ||
"org.scalanlp" %% "breeze" % "1.3", | ||
"org.scalatest" %% "scalatest" % "3.2.0", | ||
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test, | ||
"com.klibisz.futil" %% "futil" % "0.1.2" % Test, | ||
"com.typesafe" % "config" % "1.4.0" % Test, | ||
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2" % Test, | ||
"com.vladsch.flexmark" % "flexmark-all" % "0.35.10" % Test, | ||
"org.apache.commons" % "commons-math3" % "3.6.1" % Test, | ||
"org.apache.lucene" % "lucene-analysis-common" % LuceneVersion % Test, | ||
"org.apache.lucene" % "lucene-backward-codecs" % LuceneVersion % Test, | ||
"org.elasticsearch" % "elasticsearch" % ElasticsearchVersion % Test, | ||
"org.pegdown" % "pegdown" % "1.4.2" % Test | ||
), | ||
scalacOptions ++= ScalacOptions | ||
) |
Oops, something went wrong.