Skip to content

Commit

Permalink
Update gradle file with info about publishing packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
stelitop committed Aug 28, 2023
1 parent 14f1689 commit 1d2133d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,21 @@ dependencies {
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'stelitop'
artifactId = 'mad4j'
version = "0.0-1-SNAPSHOT"
from components.java

pom {
name = 'Mad4J'
description = 'An extension library for Discord4J, utilising method annotations and spring boot.'
repositories {
maven {
name = "mad4j"
url = uri("https://maven.pkg.github.com/stelitop/mad4j")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

//uploadArchives {
Expand Down

0 comments on commit 1d2133d

Please sign in to comment.