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.
This commit is contained in:
Aeranan committed 2014-07-13 15:25:07 +01:00
1 parent af27bcdada
commit 8b8293fc64
1 file changed
+7
+7
View File
@@ -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