2013-10-01 32 views

回答

1

当解析插件时,Grails提供排除某些依赖的能力。所以你可以在你的BuildConfig.groovy中做到这一点:

dependencies { 
    //version need to be replaced to the desired value 
    compile('org.apache.poi:poi:version') 
    compile('org.apache.poi:poi-ooxml:version') 
} 

plugins { 
    compile(":excel-export:0.1.7") { 
    //list of dependencies declared inside the plugin that will be ignored. 
    excludes 'poi', 'poi-ooxml' 
    } 
} 
+0

'排除'poi','poi-ooxml'就足够了我的亲爱的朋友。 ;) – dmahapatro

+0

哦,没错!我将编辑:-) –

相关问题