Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lazy val commonSettings: Seq[Setting[_]] = Seq(
- ThisBuild / version := "1.0",
- ThisBuild / scalaVersion := "2.12.18",
- ThisBuild / organization := "Organizzazione LC"
- )
- //Importante aggiungere lo slash alla file del path in scalaHome
- //scalaHome := Some(file("/home/leonardo/MioArchivio/Programmi/scala-2_12_18/scala-2.12.18/"));
- scalaHome := Some(file("/home/leonardochiodi1/MioArchivio/Programmi/Scala-2_12_18/scala-2.12.18/"));
- resolvers += "cats-core" at "https://mvnrepository.com/artifact/org.typelevel/cats-core";
- lazy val root = (project in file(".")).
- settings(commonSettings).
- settings(
- sbtPlugin := true,
- autoCompilerPlugins := true,
- name := "estrazione-dati-cw",
- description := "Estrae i dati di specifici CW",
- scalacOptions := Seq("-feature",
- "-deprecation",
- "-unchecked",
- "-language:postfixOps",
- "-language:higherKinds",
- "-Ypartial-unification",
- "-Yresolve-term-conflict:package")
- )
- lazy val describeSchema = taskKey[Unit]("describe database schema");
- fullRunTask(describeSchema, Runtime, "Mysql_cloud_DB_connection");
- addCommandAlias("getCW",
- "clean; " +
- "reload; " +
- "clean; " +
- "reload; " +
- "compile; " +
- //"describeSchema; " +
- "run; " +
- "package");
- Compile / compileIncremental / run / mainClass := Some("src.main.scala.cwParseData.parseCwData");
- addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
- libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.26";
- libraryDependencies += "org.typelevel" %% "cats-effect-kernel" % "3.4.5";
- libraryDependencies += "org.typelevel" %% "cats-effect-std" % "3.4.5";
- libraryDependencies += "org.typelevel" %% "cats-effect" % "3.4.5";
- libraryDependencies += "org.typelevel" %% "cats-core" % "2.10.0";
- libraryDependencies += "org.typelevel" %% "cats-time" % "0.5.1";
- libraryDependencies += "com.typesafe.slick" %% "slick" % "3.4.1";
- libraryDependencies += "com.typesafe.slick" %% "slick-hikaricp" % "3.4.1";
- libraryDependencies += "mysql" % "mysql-connector-java" % "6.0.6";
- libraryDependencies += "org.apache.avro" % "avro" % "1.11.0";
- //dependencyOverrides += "org.scala-lang.modules" % "scala-xml_2.12" % "2.1.0";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement