1

All,

I have created a plugin that I will be using across several projects. For testing purposes, I have included the jar file needed to connect to Oracle to test the domain classes in this plugin. I do not want this jar file to be included in the packaged plugin (done by running package-plugin). The jar file exists in the /lib directory. What do I have to do to make sure it gets excluded in the packaged plugin?

Thank you for any help!

4

2 に答える 2

1

pluginExcludes次のように使用します

class UiPerformanceGrailsPlugin {

    String version = '1.2.1'
    String grailsVersion = '1.0 > *'
    Map dependsOn = [:]
    List pluginExcludes = [
        'lib/build/*.jar',
        'lib/easymock.jar',
        'src/groovy/com/studentsonly/grails/plugins/uiperformance/taglib/AbstractTaglibTest.groovy'
    ]
....
}
于 2012-12-29T17:42:43.540 に答える
0

代わりにmavenを介してjarを含める場合は、ビルド構成でエクスポートをfalseに設定できます。

于 2012-12-28T19:55:25.080 に答える