Skip to content

Commit

Permalink
add more jar package (javadocJar sourcesJar)
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed Sep 22, 2024
1 parent 0a001b8 commit 558b8e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,19 @@ task iris(type: Copy) {
dependsOn(build)
}

task sourcesJar(type: Jar, dependsOn: classes) {
dependsOn(iris)
archiveClassifier.set('sources')
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
dependsOn(iris)
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}


def registerCustomOutputTask(name, path) {
if (!System.properties['os.name'].toLowerCase().contains('windows')) {
return;
Expand Down

0 comments on commit 558b8e4

Please sign in to comment.