From b1eefa040e64573ce2dc03c11d31efcec578ba53 Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Wed, 9 Aug 2017 10:25:02 -0300 Subject: [PATCH] Build sources for jitpack.io --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 17896966..a399ca97 100644 --- a/build.gradle +++ b/build.gradle @@ -15,3 +15,11 @@ dependencies { targetCompatibility = 1.7 } +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + +artifacts { + archives sourcesJar +} \ No newline at end of file