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