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
Post a Comment