gpt4 book ai didi

grails - 在发布时是否编译了grails插件

转载 作者:行者123 更新时间:2023-12-02 15:03:27 25 4
gpt4 key购买 nike

我看到grails插件也可以编译插件文件。所以我猜grails插件没有编译成字节码。有没有办法让grails插件编译成字节码,这样就不会在所有将它们作为依赖项的项目中一遍又一遍地编译?
注意:我使用的是grails 2.4.3,但是这个问题也可能适用于其他版本。

最佳答案

So I am guessing grails plugins are not compiled into bytecode.


Grails插件被编译为字节码。没有其他方法可以执行Groovy或Java代码。

Is there a way to make grails plugins compile into bytecode so theyare not compiled over and over in all projects that have them asdependency?


该代码必须先编译为字节码,然后才能执行。在旧的插件系统(Grails 1和2)中,这是在应用程序编译时发生的。使用Grails 3和Grails 4时,插件会在分发时进行编译,因此当应用程序使用它们时,代码已被编译为字节码,因此代码仍被编译为字节码,但是当插件发布为与编译使用插件的应用程序时发生的情况相反。

关于grails - 在发布时是否编译了grails插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63530814/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com