update publication scripts

This commit is contained in:
InsanusMokrassar 2021-02-17 00:31:50 +06:00
parent 6dec930a9d
commit a2b3fe57ac
2 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,10 @@ task javadocJar(type: Jar) {
from javadoc from javadoc
classifier = 'javadoc' classifier = 'javadoc'
} }
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
publishing { publishing {
publications { publications {
@ -13,6 +17,7 @@ publishing {
from components.java from components.java
artifact javadocJar artifact javadocJar
artifact sourcesJar
pom { pom {
resolveStrategy = Closure.DELEGATE_FIRST resolveStrategy = Closure.DELEGATE_FIRST

View File

@ -6,6 +6,10 @@ task javadocJar(type: Jar) {
from javadoc from javadoc
classifier = 'javadoc' classifier = 'javadoc'
} }
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
publishing { publishing {
publications { publications {
@ -13,6 +17,7 @@ publishing {
from components.java from components.java
artifact javadocJar artifact javadocJar
artifact sourcesJar
pom { pom {
resolveStrategy = Closure.DELEGATE_FIRST resolveStrategy = Closure.DELEGATE_FIRST