Hi all,
I’m trying to manually import an external package: cats-effect-2 in my scalac script.
Actually I tried this script:
scalac -feature -deprecation -unchecked -language:postfixOps -language:higherKinds -Ypartial-unification -Yresolve-term-conflict:package src/main/scala/Applicazione-analisi-accessi-fraudolenti-CATS-EFFECT.scala
This should insert all the specified options (deprecation, unchecked …) like mentioned in the official cats-effect documentation: https://typelevel.org/cats-effect/docs/getting-started
But I’m not able to edit my scalac script to include all the cats-effect packages.
Actually my only external dependecy is the cats itself:
libraryDependencies += "org.typelevel" %% "cats-effect" % "2.5.3"
Using “sbt compile” it runs flawlessly, with my build.sbt:
name := "ApplicazioneAnalisiAccessiFraudolenti"
version := "1.0"
scalaVersion := "2.12.10"
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-language:postfixOps",
"-language:higherKinds",
"-Ypartial-unification",
"-Yresolve-term-conflict:package")
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.1.2"
libraryDependencies += "org.apache.hadoop" % "hadoop-client" % "2.10.1"
libraryDependencies += "org.typelevel" %% "cats-effect" % "2.5.3" withSources() withJavadoc()
Can you please help me to update my scalac to integrate all the cats-effect-2 dependencies?
Thank you