Skip to content

Commit

Permalink
update build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo Torre committed Jan 14, 2022
1 parent 587f736 commit e905435
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions build.sbt
@@ -1,32 +1,17 @@
name := "elastic4s-client-aws"
import sbt.Keys._

organization := "io.kontainers"
val awsSdkVersion = "2.17.111"
val elastic4sVersion = "7.16.3"

lazy val buildSettings = Seq(
organization := "io.kontainers",
homepage := Some(new URL("https://github.com/kontainers/elastic4s-client-aws")),
licenses := Seq(("Apache License 2.0", new URL("http://www.apache.org/licenses/LICENSE-2.0.html"))),
startYear := Some(2021),
scalaVersion := "2.13.8",
crossScalaVersions := Seq("2.12.15", scalaVersion.value)
)

ThisBuild / scalaVersion := "2.13.8"
ThisBuild / crossScalaVersions := Seq("2.12.15", "2.13.8")
ThisBuild / scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked")

val awsSdkVersion = "2.17.111"
val elastic4sVersion = "7.16.3"

libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.6.0",
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % elastic4sVersion,
"com.sksamuel.exts" %% "exts" % "1.61.1",
"org.slf4j" % "slf4j-api" % "1.7.33",
"software.amazon.awssdk" % "auth" % awsSdkVersion,
"software.amazon.awssdk" % "core" % awsSdkVersion,
"software.amazon.awssdk" % "regions" % awsSdkVersion,
"org.scalatest" %% "scalatest" % "3.2.10" % Test
)

lazy val publishSettings = Seq(
publishMavenStyle := true,
Test/ publishArtifact := false,
Expand Down Expand Up @@ -68,10 +53,24 @@ lazy val publishSettings = Seq(
)
)


homepage := Some(new URL("https://github.com/kontainers/elastic4s-client-aws"))
startYear := Some(2021)
licenses := Seq(("Apache License 2.0", new URL("http://www.apache.org/licenses/LICENSE-2.0.html")))
lazy val elastic4sClientAWS = project.in(file(".")).
settings(buildSettings).
settings(publishSettings).
settings(
name := "elastic4s-client-aws",
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.6.0",
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % elastic4sVersion,
"com.sksamuel.exts" %% "exts" % "1.61.1",
"org.slf4j" % "slf4j-api" % "1.7.33",
"software.amazon.awssdk" % "auth" % awsSdkVersion,
"software.amazon.awssdk" % "core" % awsSdkVersion,
"software.amazon.awssdk" % "regions" % awsSdkVersion,
"org.scalatest" %% "scalatest" % "3.2.10" % Test
)
)

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11.0.13"))
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
Expand Down

0 comments on commit e905435

Please sign in to comment.