Skip to content

Commit

Permalink
buildscript: add publication to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElan committed Dec 13, 2021
1 parent 1d64f1f commit 1d3fa37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,17 @@ artifacts {

// publishing
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact source: sourcesJar, classifier: "src"
artifact source: devJar, classifier: "dev"
if (apiPackage) {
archives source: apiJar, classifier: "api"
}
}
}

repositories {
maven {
String owner = System.getenv("REPOSITORY_OWNER") ?: "Unknown"
Expand Down

0 comments on commit 1d3fa37

Please sign in to comment.