Advertisement
LeonardoChiodi

Untitled

Dec 31st, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 2.17 KB | None | 0 0
  1. lazy val commonSettings: Seq[Setting[_]] = Seq(
  2.   ThisBuild / version := "1.0",
  3.   ThisBuild / scalaVersion := "2.12.18",
  4.   ThisBuild / organization := "Organizzazione LC"
  5. )
  6.  
  7. //Importante aggiungere lo slash alla file del path in scalaHome
  8. //scalaHome := Some(file("/home/leonardo/MioArchivio/Programmi/scala-2_12_18/scala-2.12.18/"));
  9. scalaHome := Some(file("/home/leonardochiodi1/MioArchivio/Programmi/Scala-2_12_18/scala-2.12.18/"));
  10.  
  11. resolvers += "cats-core" at "https://mvnrepository.com/artifact/org.typelevel/cats-core";
  12.  
  13. lazy val root = (project in file(".")).
  14.   settings(commonSettings).  
  15.   settings(
  16.     sbtPlugin := true,
  17.     autoCompilerPlugins := true,
  18.     name := "estrazione-dati-cw",
  19.     description := "Estrae i dati di specifici CW",
  20.     scalacOptions := Seq("-feature",
  21.              "-deprecation",
  22.              "-unchecked",
  23.              "-language:postfixOps",
  24.              "-language:higherKinds",
  25.              "-Ypartial-unification",
  26.              "-Yresolve-term-conflict:package")
  27.       )
  28.  
  29. lazy val describeSchema = taskKey[Unit]("describe database schema");
  30.  
  31. fullRunTask(describeSchema, Runtime, "Mysql_cloud_DB_connection");
  32.  
  33. addCommandAlias("getCW",
  34. "clean; " +
  35. "reload; " +
  36. "clean; " +
  37. "reload; " +
  38. "compile; " +
  39. //"describeSchema; " +
  40. "run; " +
  41. "package");
  42.  
  43. Compile / compileIncremental / run / mainClass := Some("src.main.scala.cwParseData.parseCwData");
  44.  
  45. addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
  46.  
  47. libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.26";
  48. libraryDependencies += "org.typelevel" %% "cats-effect-kernel" % "3.4.5";
  49. libraryDependencies += "org.typelevel" %% "cats-effect-std" % "3.4.5";
  50. libraryDependencies += "org.typelevel" %% "cats-effect" % "3.4.5";
  51. libraryDependencies += "org.typelevel" %% "cats-core" % "2.10.0";
  52. libraryDependencies += "org.typelevel" %% "cats-time" % "0.5.1";
  53. libraryDependencies += "com.typesafe.slick" %% "slick" % "3.4.1";
  54. libraryDependencies += "com.typesafe.slick" %% "slick-hikaricp" % "3.4.1";
  55. libraryDependencies += "mysql" % "mysql-connector-java" % "6.0.6";
  56. libraryDependencies += "org.apache.avro" % "avro" % "1.11.0";
  57.  
  58. //dependencyOverrides += "org.scala-lang.modules" % "scala-xml_2.12" % "2.1.0";
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement