Creating grails binary plugin results in jar file wich contains all groovy files with comments

隐身守侯 提交于 2019-12-12 20:00:31

问题


I'm using the grails release plugin (3.0.1) in my grails 2.3.0 plugin to build a binary plugin with

maven-deploy --binary 

I also set def packaging = "binary"in my Plugins Descriptor Groovy script.

When i inspect the created jar file with jd-gui i can see that it contains my *.groovy sources with comments between the *.class files. I think this shouldn't be, or am i false?

Why does the binary plugin jar contain my *.groovy sources? How can i fix this?


回答1:


This new in 2.3 - source is now included in binary plugins by default. To disable this, add

grails.project.plugin.includeSource = false

to BuildConfig.groovy



来源:https://stackoverflow.com/questions/19126478/creating-grails-binary-plugin-results-in-jar-file-wich-contains-all-groovy-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!