Skip to content

Commit

Permalink
[java] create a sources jar for shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmaykov committed Jul 15, 2023
1 parent b8bb79a commit b6afe3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions java/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ publishing {
}
}
}

tasks {
val sourcesJar by creating(Jar::class) {
dependsOn(JavaPlugin.CLASSES_TASK_NAME)
archiveClassifier.set("sources")
from(sourceSets["main"].allJava)
}

artifacts {
add("archives", sourcesJar)
}
}

0 comments on commit b6afe3f

Please sign in to comment.