Java sdk customers can use to interact with our ecosystem
- Install Java
brew install openjdk
- Install Gradle
brew install gradle
- Clone repo
git clone git@github.com:momentohq/client-sdk-java.git
- Initialize git submodule
git submodule init && git submodule sync && git submodule update
- Run gradle build
TEST_AUTH_TOKEN=<auth token> gradle clean build
Add this to your gradle.build.kts
file
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("com.amazonaws:aws-java-sdk:1.12.32")
}
}
repositories {
maven {
url = uri("s3://artifact-814370081888-us-west-2/client-sdk-java/release")
credentials(AwsCredentials::class) {
val defaultCredentials = com.amazonaws.auth.DefaultAWSCredentialsProviderChain().getCredentials()
accessKey = defaultCredentials.awsAccessKeyId
secretKey = defaultCredentials.awsSecretKey
}
}
}
Then you should be able to use your aws credentials and build your app with the sdk