Add deobf, javadoc, and sources creation to buildscript

This commit is contained in:
TehNut committed 2014-09-28 02:52:16 -07:00
1 parent 39623e9ffc
commit c9cb285abe
1 file changed
+20
+20
View File
@@ -71,6 +71,26 @@ jar {
)
}
// add a source jar
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// add a javadoc jar
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
// because the normal output has been made to be obfuscated
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
tasks.build.dependsOn sourceJar, javadocJar, deobfJar
tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8'
}