Skip to content

Commit

Permalink
Publish api
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Sep 13, 2024
1 parent 5e63463 commit fc36ae7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
java-version: 21
- name: Build with Gradle
run: ./gradlew --build-cache test build
- name: Publish
- name: Publish plugin
run: ./gradlew :plugin-paper:publishMavenPublicationToEldonexusRepository
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
- name: Publish api
run: ./gradlew :plugin-api:publishMavenPublicationToEldonexusRepository
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
21 changes: 20 additions & 1 deletion plugin-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
plugins {
java
`java-library`
`maven-publish`
}

group = "de.chojo"
version = "1.0.0"
version = "1.0.1"

repositories {
mavenCentral()
Expand All @@ -15,3 +16,21 @@ dependencies {
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.11.0")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine")
}

publishing {
repositories {
maven {
name = "Eldonexus"
url = uri("https://eldonexus.de/repository/maven-releases")
credentials {
username = System.getenv("NEXUS_USERNAME")
password = System.getenv("NEXUS_PASSWORD")
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
2 changes: 1 addition & 1 deletion plugin-paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "de.chojo.pluginjam"
version = "1.0.3"
version = "1.0.4"

dependencies {
implementation(project(":plugin-api"))
Expand Down

0 comments on commit fc36ae7

Please sign in to comment.