From 1f8da007f7a3b8b80f854375339a38ad81672d96 Mon Sep 17 00:00:00 2001 From: Guillermo Orellana Date: Tue, 27 Feb 2024 16:07:41 +0000 Subject: [PATCH] update docs --- README.md | 30 ++++++++++++++++++++---------- jitpack.yml | 3 --- renovate.json5 | 7 ++++++- 3 files changed, 26 insertions(+), 14 deletions(-) delete mode 100644 jitpack.yml diff --git a/README.md b/README.md index 7cf4958..92a0a82 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,31 @@ # solana-kotlin -### Step 1. Add the JitPack repository to your build file +### Usage + +Add it in your root build.gradle.kts at the end of repositories: -Add it in your root build.gradle at the end of repositories: ``` -allprojects { - repositories { - ... - maven { url 'https://jitpack.io' } - } +repositories { + mavenCentral() +} + +dependencies { + implementation("net.avianlabs.solana:solana-kotlin:") } ``` -### Step 2. Add the dependency +### Snapshot releases + +You can get snapshot releases from [GitHub Packages](https://github.com/orgs/avianlabs/packages?repo_name=solana-kotlin). ``` -dependencies { - implementation 'net.avianlabs.solana-kotlin:solana-kotlin:' +repositories { + maven { + url = uri("https://maven.pkg.github.com/avianlabs/solana-kotlin") + credentials { + username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") + } + } } ``` diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index 1a207af..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,3 +0,0 @@ -before_install: - - sdk install java 17.0.7-tem - - sdk use java 17.0.7-tem diff --git a/renovate.json5 b/renovate.json5 index 98f5287..58bea0d 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -35,7 +35,12 @@ "org.jetbrains.kotlin", ], "groupName": "Kotlin/Compose" - } + }, + { + // First release used Kotlin version + project version which sorts higher than new versions. + "matchPackageNames": ["co.touchlab:cklib-gradle-plugin"], + "allowedVersions": "!/1\\.5\\.31\\.2/", + }, ], "force": { "constraints": {