mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-23 21:39:44 +00:00
Add deobf, javadoc, and sources creation to buildscript
This commit is contained in:
1 parent
39623e9ffc
commit
c9cb285abe
1 file changed
+20
@@ -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'
|
||||
}
|
||||
Reference in new issue
Block a user