Skip to content

Commit

Permalink
Publish snapshots to https://repo.kord.dev/snapshots (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann authored Aug 19, 2024
1 parent e9c4674 commit e2e5f19
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deployment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand All @@ -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"
}
Expand All @@ -95,9 +99,19 @@ dependencies {

### Maven

##### Kord Snapshots Repository (Optional):
##### Kord Snapshot Repositories (optional, choose one of these):

```xml
<repository>
<id>snapshots-repo</id>
<url>https://repo.kord.dev/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

<repository>
<id>snapshots-repo</id>
Expand All @@ -114,7 +128,6 @@ dependencies {
---

```xml

<dependency>
<groupId>dev.kord</groupId>
<artifactId>kord-core-jvm</artifactId>
Expand Down
11 changes: 11 additions & 0 deletions buildSrc/src/main/kotlin/kord-publishing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
}
}

Expand Down

0 comments on commit e2e5f19

Please sign in to comment.