Adds a classifier to jar task
This commit is contained in:
parent
7443d0e10b
commit
5a20237230
1 changed files with 11 additions and 4 deletions
15
build.gradle
15
build.gradle
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue