diff --git a/.github/workflows/deployment-ci.yml b/.github/workflows/deployment-ci.yml
index f372fdbf87f..12e5d765085 100644
--- a/.github/workflows/deployment-ci.yml
+++ b/.github/workflows/deployment-ci.yml
@@ -42,6 +42,8 @@ jobs:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
+ KORD_REPO_USER: ${{ secrets.KORD_REPO_USER }}
+ KORD_REPO_PASSWORD: ${{ secrets.KORD_REPO_PASSWORD }}
SIGNING_KEY: ${{ secrets.signingKey }}
SIGNING_PASSWORD: ${{ secrets.signingPassword }}
steps:
diff --git a/README.md b/README.md
index 01d68716b00..e19a99d4636 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,8 @@ in [`gradle.properties`](gradle.properties))
```kotlin
repositories {
mavenCentral()
- // Kord Snapshots Repository (Optional):
+ // Kord Snapshot Repositories (optional, choose one of these):
+ maven("https://repo.kord.dev/snapshots")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
@@ -82,7 +83,10 @@ dependencies {
```groovy
repositories {
mavenCentral()
- // Kord Snapshots Repository (Optional):
+ // Kord Snapshot Repositories (optional, choose one of these):
+ maven {
+ url "https://repo.kord.dev/snapshots"
+ }
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
@@ -95,9 +99,19 @@ dependencies {
### Maven
-##### Kord Snapshots Repository (Optional):
+##### Kord Snapshot Repositories (optional, choose one of these):
```xml
+
+ snapshots-repo
+ https://repo.kord.dev/snapshots
+
+ false
+
+
+ true
+
+
snapshots-repo
@@ -114,7 +128,6 @@ dependencies {
---
```xml
-
dev.kord
kord-core-jvm
diff --git a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts
index a001f7113cc..89913975c14 100644
--- a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts
+++ b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts
@@ -68,6 +68,17 @@ publishing {
password = getenv("NEXUS_PASSWORD")
}
}
+
+ if (!isRelease) {
+ maven {
+ name = "kordSnapshots"
+ url = uri("https://repo.kord.dev/snapshots")
+ credentials {
+ username = getenv("KORD_REPO_USER")
+ password = getenv("KORD_REPO_PASSWORD")
+ }
+ }
+ }
}
}