问题
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