From 8b8293fc64bf5f19a6a8d0d047d5bc677e62936b Mon Sep 17 00:00:00 2001 From: Aeranan Date: Sun, 13 Jul 2014 15:25:07 +0100 Subject: [PATCH] Update build.gradle Add source jar generation as an option. Useful for Mavenisation, when TCon is just referred to by a Maven dependency. This attaches clean sources without decompiling or checking out from Git. --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 771a113d8b2..e74e7d1125f 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