2013-10-01 31 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

哦,沒錯!我將編輯:-) –

相關問題