To use the library, first add the mavenCentral
repository to your repositories
block in your build.gradle
:
repositories {
mavenCentral()
}
Then, add the tw-context
library as a dependency in your dependencies
block in your build.gradle
:
dependencies {
implementation 'com.transferwise.common:tw-context:<VERSION>'
}
Replace
<VERSION>
with the version of the library you want to use. You can also usetw-context-starter
which autoconfigures some Spring beans. Ortw-context-ownership-starter
if you want to automatically set theTwContexts
'sowner
attribute.