how to add monocle library to my scala project?

134 views Asked by At

i have a scala project using the scala plugin. I need to use this monocle library, (https://www.optics.dev/Monocle/) for a project, but I just have no idea how to add it to my project. For sbt projects, there should be a build.sbt file, where I could simply put in something like this:

libraryDependencies ++= Seq(
 "com.github.julien-truffaut" %% "monocle-core"  % "2.0.3",
 "com.github.julien-truffaut" %% "monocle-macro" % "2.0.3",
)

Which should add the dependency for me. However, I have no idea how I should do this in my current project, and can't really find any leads online, theres no.jar-files anywhere that I can download.

I also tried linking to the library documentation with this thing:

enter image description here

Which did not work. My directory structure looks like this:

enter image description here

0

There are 0 answers