Change Gradle's working directory when compiling a Groovy project

后端 未结 3 1480
迷失自我
迷失自我 2021-01-01 16:48

When compiling a groovy project, gradle creates files in $projectRoot/build/. Is there a way to configure this to e.g. an absolute path?

3条回答
  •  北海茫月
    2021-01-01 17:47

    You can add project.buildDir = 'your/directory' to the file build.gradle you can place it anywhere in separate line

提交回复
热议问题