diff options
author | LexManos <LexManos@gmail.com> | 2018-11-02 18:44:53 -0700 |
---|---|---|
committer | LexManos <LexManos@gmail.com> | 2018-11-02 18:44:53 -0700 |
commit | f0d15b56cb472b67ff988cae4c6b7506f5a06eec (patch) | |
tree | eee33c260cb882555af971af458fdbe9532f112a /build.gradle | |
parent | a9822be370570be5976c3b58026f60c2e64c89b4 (diff) | |
download | Artifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.tar.gz Artifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.tar.bz2 Artifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.zip |
publish source jar
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 51768a0..635950d 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,13 @@ jar { from sourceSets.gradlecomp.output } +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.api.allSource + from sourceSets.shared.allSource + from sourceSets.gradlecomp.allSource +} + license { header = file("$rootDir/LICENSE-header.txt") @@ -67,6 +74,7 @@ publishing { publications { mavenJava(MavenPublication) { from components.java + artifact tasks.sourcesJar pom { groupId = project.group version = project.version |