Grails3.x-分叉执行

Grails3.x-分叉执行,grails,gradle,grails3,Grails,Gradle,Grails3,我正在将一个项目从Grails2.4迁移到Grails3.3 在grails 2.4中,我们有以下分叉执行配置: grails.project.fork = [ // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required // compile: [maxMemory: 256, minMemory: 64,

我正在将一个项目从Grails2.4迁移到Grails3.3

在grails 2.4中,我们有以下分叉执行配置:

grails.project.fork = [
    // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
    //  compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

    // configure settings for the test-app JVM, uses the daemon by default
   test: [maxMemory: 4096, minMemory: 1024, debug: false, maxPerm: 16384, daemon:true],
    // configure settings for the run-app JVM
    run: [maxMemory: 16384, minMemory: 1024, debug: false, maxPerm: 16384, forkReserve:false],
    // configure settings for the run-war JVM
    war: [maxMemory: 16384, minMemory: 1024, debug: false, maxPerm: 16384, forkReserve:false],
    // configure settings for the Console UI JVM
    console: [maxMemory: 16384, minMemory: 1024, debug: false, maxPerm: 16384]
]
如Grails2.3所述:

5.2分叉执行

自Grails 2.3、run app、run war、test app和 控制台命令现在在分叉的JVM中执行,以便隔离 从运行时类路径生成的类路径

分叉执行是通过 grails app/conf/BuildConfig.groovy文件

然而,我在Grails3.x中找不到任何关于分叉执行配置的文档

在哪里可以找到Grails3.x中关于分叉执行的文档


我应该把配置移到哪里?

只是好奇,你有没有找到解决方案?我想我已经把它整理好了。我想,自从切换到gradle后,这就没有必要了。为了配置jvm参数,我们应该只使用build.gradle文件中的相关构建块来设置jvm参数。这似乎至少对我有用。