From 2452f1e943d5d104127fced0824c1e1ef6de6ea6 Mon Sep 17 00:00:00 2001 From: jpe7s Date: Thu, 3 Oct 2024 08:21:16 -0500 Subject: [PATCH] doc gradle add dependency. --- README.md | 29 +++++++++++++++++++++++++++++ build.gradle | 7 ------- settings.gradle | 2 +- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0a95605..45e8343 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,35 @@ - [sava-core](https://github.com/sava-software/sava) - [sava-rpc](https://github.com/sava-software/sava) +### Add Dependency + +Create +a [GitHub user access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) +with read access to GitHub Packages. + +Then add the following to your Gradle build script. + +```groovy +repositories { + maven { + url = "https://maven.pkg.github.com/sava-software/sava" + credentials { + username = GITHUB_USERNAME + password = GITHUB_PERSONAL_ACCESS_TOKEN + } + } + maven { + url = "https://maven.pkg.github.com/sava-software/solana-programs" + } +} + +dependencies { + implementation "software.sava:sava-core:$VERSION" + implementation "software.sava:sava-rpc:$VERSION" + implementation "software.sava:solana-programs:$VERSION" +} +``` + ## Contribution Unit tests are needed and welcomed. Otherwise, please open an issue or send an email before working on a pull request. diff --git a/build.gradle b/build.gradle index 41152d4..605a007 100644 --- a/build.gradle +++ b/build.gradle @@ -61,13 +61,6 @@ repositories { mavenCentral() } -configurations.configureEach { - resolutionStrategy { - cacheDynamicVersionsFor 15, 'minutes' - cacheChangingModulesFor 15, 'minutes' - } -} - dependencies { implementation libs.bouncycastle implementation libs.json.iterator diff --git a/settings.gradle b/settings.gradle index 44c36d5..bf3b7c8 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,7 +11,7 @@ dependencyResolutionManagement { } versionCatalogs { libs { - from("software.sava:solana-version-catalog:0.1.13") + from("software.sava:solana-version-catalog:0.2.2") } } } \ No newline at end of file