From f0d15b56cb472b67ff988cae4c6b7506f5a06eec Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 2 Nov 2018 18:44:53 -0700 Subject: publish source jar --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit