相关疑难解决方法(0)

Gradle - 不允许设置maxHeapSize?

task test(type: Test, overwrite: true, dependsOn: [setupUser]) {
    maxHeapSize "3000m"
    allJvmArgs "-Xmx3000m"
}
Run Code Online (Sandbox Code Playgroud)

错误:

* What went wrong:
A problem occurred evaluating root project 'myproject'.
> Could not find method allJvmArgs() for arguments [-Xmx3000m] on root project 'myproject'.
Run Code Online (Sandbox Code Playgroud)

无论我尝试什么,我跑的时候都会遇到堆问题gradle test.我正在使用1.0-milestone-9

groovy junit gradle

0
推荐指数
1
解决办法
3707
查看次数

标签 统计

gradle ×1

groovy ×1

junit ×1