编译并签名的grails插件

发布于 2024-08-08 15:26:01 字数 116 浏览 4 评论 0原文

是否可以编译并签署grails插件?我正在考虑使用 grails 插件架构来分发我的应用程序逻辑,并且我不希望我的客户能够轻松读取 .groovy 或修改它。是否可以以某种方式打包它或者至少仅分发编译后的.class?

Is it possible to compile and sign grails plug-in? I am thinking about distributing my application logic using grails plug-in architecture and I do not want my client to be able to read that easily .groovy or to modify it. Is it possible to package it somehow or at least distribute only compiled .class?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦里人 2024-08-15 15:26:01

是的。你需要考虑更传统的Java。

创建一个包含您的逻辑的 JAR 并对该 jar 进行签名。将最少的 Groovy 代码放入插件中。如果它是控制器或 GORM 对象,您还没有说明逻辑在哪里,所以我 100% 不确定您在寻找什么。

希望这有帮助。

Yes. you need to think more traditional Java.

Create a JAR with your logic in it and sign the jar. Put the minimum Groovy code in the plugin. You have not stated where the logic is if it's a controller or GORM object so I am not sure what you looking for 100%.

Hope this helps.

温柔女人霸气范 2024-08-15 15:26:01

可以将 groovy/java 代码编译并打包到 jar 中,然后在 grails 应用程序中使用它。 (正如 Scott 所建议的)但是这些类不能直接从 grails 中受益,即。无法在单独的 jar 中声明 grails 服务、域类或控制器。

grails jira 中有一个问题描述了同样的问题:
http://jira.codehaus.org/browse/GRAILS-4956

It is possible to compile and package groovy/java code into a jar and then use it in a grails app. (as Scott suggests) but these classes can not directly benefit from grails ie. no way to declare grails service, domain class or controller in a separate jar.

There is an issue in grails jira describing the same problem:
http://jira.codehaus.org/browse/GRAILS-4956

妖妓 2024-08-15 15:26:01

从 Grails 1.4 M1 开始,就有 二进制插件,我认为这正是你需要。我不确定是否以任何方式支持签名,但至少可以在没有源的情况下分发插件。

Since Grails 1.4 M1 there are binary plugins, I assume this is exactly what you need. I'm not sure if signing is supported in any way, but it's at least possible to distribute the plugin without its sources.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文