Skip to content

Commit

Permalink
Code Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbhatia023 committed Aug 25, 2023
1 parent 2fe96f6 commit a5f79e5
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 68 deletions.
18 changes: 9 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ThisBuild / organization := "com.clairvoyant.data.scalaxy"
ThisBuild / version := "1.0.0"

ThisBuild / resolvers ++= Seq(
"DataScalaxyCommon Repo" at "https://maven.pkg.github.com/teamclairvoyant/data-scalaxy-common",
"DataScalaxyTestUtil Repo" at "https://maven.pkg.github.com/teamclairvoyant/data-scalaxy-test-util"
)

Expand Down Expand Up @@ -41,30 +40,31 @@ ThisBuild / wartremoverErrors ++= Warts.allBut(

// ----- TOOL VERSIONS ----- //

val dataScalaxyCommonVersion = "1.0.0"
val dataScalaxyTestUtilVersion = "1.0.0"
val sparkVersion = "3.4.1"

// ----- TOOL DEPENDENCIES ----- //

val dataScalaxyCommonDependencies = Seq(
"com.clairvoyant.data.scalaxy" %% "common" % dataScalaxyCommonVersion
)

val dataScalaxyTestUtilDependencies = Seq(
"com.clairvoyant.data.scalaxy" %% "test-util" % dataScalaxyTestUtilVersion % Test
)

val sparkDependencies = Seq(
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion
).map(_.cross(CrossVersion.for3Use2_13))

// ----- MODULE DEPENDENCIES ----- //

val rootDependencies =
dataScalaxyCommonDependencies ++
dataScalaxyTestUtilDependencies
dataScalaxyTestUtilDependencies ++
sparkDependencies

// ----- SETTINGS ----- //

val rootSettings = Seq(
Keys.scalacOptions ++= Seq("-Xmax-inlines", "50"),
libraryDependencies ++= rootDependencies
libraryDependencies ++= rootDependencies.map(_ excludeAll ("org.scala-lang.modules", "scala-xml"))
)

// ----- PROJECTS ----- //
Expand Down
Loading

0 comments on commit a5f79e5

Please sign in to comment.