githubEdit

Adding Result to Your Build

How to add Result as a dependency to your build

This library adheres to Pragmatic Versioningarrow-up-right to communicate the backwards compatibility of each version.

The latest releases are available in Maven Centralarrow-up-right.

Artifact Coordinates

Add this Maven dependency to your build:

Group ID
Artifact ID
Latest Version

com.leakyabstractions

result

circle-check

Maven

To use Result, we can add a Mavenarrow-up-right dependency to our project.

<dependencies>
    <dependency>
        <groupId>com.leakyabstractions</groupId>
        <artifactId>result</artifactId>
        <version>1.0.0.0</version>
    </dependency>
</dependencies>

Gradle

We can also add Result as a Gradlearrow-up-right dependency.

circle-info

This is the most common configuration for projects using Result internally. If we were building a library that exposed Result in its public API, we should use api instead of implementationarrow-up-right.

Conclusion

We learned how to add the library to your project using either Mavenarrow-up-right or Gradlearrow-up-right. By including the correct dependencies, you're now ready to start leveraging the power of Results in your applications.

Last updated

Was this helpful?