From 4ebe9109402110af1a25279fadebe72b56ac3897 Mon Sep 17 00:00:00 2001 From: langerhans Date: Sun, 24 Jul 2016 02:38:30 +0200 Subject: [PATCH] Publish sources jar Fixes #128 --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 4306a6c5..feb0dc32 100644 --- a/build.gradle +++ b/build.gradle @@ -107,3 +107,12 @@ idea { sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java"); } } + +task sourcesJar(type: Jar) { + from sourceSets.main.java.srcDirs + classifier = 'sources' +} + +artifacts { + archives sourcesJar +} \ No newline at end of file