LogoLogo
GitHubFree book
  • 🏠Introduction
  • Using the Library
    • ðŸŒąGetting Started
      • Adding Result to Your Build
      • Creating Results
    • ðŸŠīBasic Usage
      • Checking Success or Failure
      • Unwrapping Values
      • Conditional Actions
    • 🚀Advanced Usage
      • Screening Results
      • Transforming Results
    • 🏁Recap
  • Add-ons
    • ðŸ’ĪLazy Results
    • ðŸ—ĢïļFluent Assertions
    • 📜Jackson Module
    • 🧑‍🚀Micronaut Serialization
  • Other resources
    • ðŸ“ĶBill of Materials
    • 📈Benchmarks
    • ðŸĪ–Demo Projects
      • Spring Boot Demo Project
      • Micronaut Demo Project
    • ⚖ïļLicense
Powered by GitBook
LogoLogo

Source Code

  • GitHub
  • License

Quality

  • SonarCloud
  • Benchmarks

Documentation

  • Free book
  • Javadoc

Releases

  • Maven Central
  • Bill of Materials

Copyright 2024 Guillermo Calvo

On this page
  • Artifact Coordinates
  • Maven
  • Gradle
  • Conclusion

Was this helpful?

Edit on GitHub
Export as PDF
  1. Using the Library
  2. Getting Started

Adding Result to Your Build

How to add Result as a dependency to your build

PreviousGetting StartedNextCreating Results

Last updated 6 months ago

Was this helpful?

This library adheres to to communicate the backwards compatibility of each version.

The latest releases are available in .

Artifact Coordinates

Add this Maven dependency to your build:

Group ID
Artifact ID
Latest Version

com.leakyabstractions

result

provides snippets for different build tools to declare this dependency.

Maven

To use Result, we can add a dependency to our project.

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

Gradle

dependencies {
    implementation("com.leakyabstractions:result:1.0.0.0")
}

Conclusion

We can also add Result as a dependency.

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 learned how to add the library to your project using either or . By including the correct dependencies, you're now ready to start leveraging the power of Results in your applications.

ðŸŒą
Pragmatic Versioning
Maven Central
Maven Central
Maven
Gradle
we should use api instead of implementation
Maven
Gradle