buildscript: add publication to publishing

This commit is contained in:
Telan committed 2021-12-13 17:00:34 +02:00
1 parent 1d64f1f1a4
commit 1d3fa3795e
1 file changed
+11
+11
View File
@@ -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"