Skip to content

Commit

Permalink
Add Maven Publication
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Mitchell <[email protected]>
  • Loading branch information
gmitch215 authored Jul 28, 2024
1 parent 296a4bf commit a845968
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ artifacts {
}

publishing {
publications {
create<MavenPublication>("maven") {
artifactId = project.name

pom {
description.set(project.description)
licenses {
license {
name.set("MIT")
url.set("https://github.com/CodeMC/API/blob/master/LICENSE")
}
}
}

from(components["java"])
}
}

repositories {
maven {
credentials {
Expand All @@ -91,4 +109,4 @@ publishing {
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshots else releases)
}
}
}
}

0 comments on commit a845968

Please sign in to comment.