groovy - Gradle How to Set Output Root Path -


my sources in folder structure like:

mygitroot/myproj/module1/src/main/groovy/com/mypak/module1 mygitroot/myproj/module2/src/main/groovy/com/mypak/module2 mygitroot/myproj/module3/src/main/groovy/com/mypak/module3

gradle builds jars in folder structure like:

mygitroot/myproj/build/libs/module1.jar mygitroot/myproj/build/libs/module2.jar mygitroot/myproj/build/libs/module3.jar

i want output default dynamic folder structure, rooted different "nongitroot" folder:

mybuildroot/myproj/build/libs/module1.jar mybuildroot/myproj/build/libs/module2.jar mybuildroot/myproj/build/libs/module3.jar

my task says this:

task sourcesjar(type: jar) {     group 'build'     description 'an archive of source code'     classifier 'sources'     sourcesets.main.allsource } 

is there elegant way change root?

using answer tim_yates - turns out not configurable option in gradle, , not natively possible. going create move task instead.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -