Adds a classifier to jar task

This commit is contained in:
zontreck 2023-11-19 04:13:55 -07:00
parent 7443d0e10b
commit 5a20237230

View file

@ -66,9 +66,16 @@ publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact jar
artifact sourcesJar
artifact javadocJar
artifactId = 'your-artifact-id' // Replace 'your-artifact-id' with your actual artifact ID
artifact jar {
archiveClassifier = 'release'
}
artifact sourcesJar {
archiveClassifier = 'sources'
}
artifact javadocJar {
archiveClassifier = 'javadoc'
}
}
}
repositories {
@ -84,4 +91,4 @@ publishing {
}
}
}
}
}