diff --git a/build.gradle b/build.gradle index 771a113d..e74e7d11 100644 --- a/build.gradle +++ b/build.gradle @@ -153,9 +153,16 @@ task libJar(type: Jar) { classifier = 'lib' } +// Create Maven source jar +task sourceJar(type: Jar, dependsOn:classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + artifacts { archives deobfJar archives libJar + archives sourceJar } // verify the properties exist.. or initialize. if (!project.hasProperty("keystore_location")) // keystore location