aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLexManos <LexManos@gmail.com>2018-11-02 18:44:53 -0700
committerLexManos <LexManos@gmail.com>2018-11-02 18:44:53 -0700
commitf0d15b56cb472b67ff988cae4c6b7506f5a06eec (patch)
treeeee33c260cb882555af971af458fdbe9532f112a
parenta9822be370570be5976c3b58026f60c2e64c89b4 (diff)
downloadArtifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.tar.gz
Artifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.tar.bz2
Artifactural-f0d15b56cb472b67ff988cae4c6b7506f5a06eec.zip
publish source jar
-rw-r--r--build.gradle8
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