java - how do I control where gradle/gradlew files and folders are located -


in new project - in using gradle/gradlew - want set location of various gradle/gradlew files , folders different default behaviour.

i talking about:

  • folder gradle, sub folder wrapper (holding gradle-wrapper.jar , gradle-wrapper.properties
  • folder build, sub folders 'classes', 'dependency-cache', 'libs', 'resources' having kinds of xml files individual components, , 'tmp' having sub folders 'compilejava' , 'jar'.

but how , configure this?

you can change location of wrapper , properties file setting task of type wrapper. example:

task wrapper(type: wrapper) {     jarfile = file('mywrapper/wrapper.jar') } 

running gradle wrapper generate following files:

. ├── build.gradle ├── gradlew ├── gradlew.bat └── mywrapper     ├── wrapper.jar     └── wrapper.properties 

the default build output directory can changed via method project.setbuilddir(object). example:

builddir = file('target') 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -