Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installation instructions #7

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is a follow-up of
the [article](https://medium.com/@ivovk/dependency-injection-with-cats-effect-resource-monad-ad7cd47b977) I wrote about
the topic.

Traditional approach to dependency enjection with cats-effect is to build a single for-comprehension that wires all the
Traditional approach to dependency injection with cats-effect is to build a single for-comprehension that wires all the
dependencies together. This approach is not very scalable and can become quite messy as the number of dependencies
grows.

Expand Down Expand Up @@ -52,6 +52,18 @@ object Main extends IOApp.Simple {
}
```

## Installation

Supported Scala versions: `3.x`

To install add the following to your `build.sbt`:

```scala
resolvers += "GitHub Package Registry (igor-vovk)" at "https://maven.pkg.github.com/igor-vovk/_"

libraryDependencies += "io.github.ivovk" %% "cats-effect-simple-di" % "{latest_version}"
```

## Debugging allocation order

If you want to see the order of initialization and finalization of resources, use `LogbackAllocationListener` when
Expand Down