我正在使用这个 Grails 插件:
http://grails.org/plugin/excel-export
它使用 Apache POI。我想更改当前使用的 Apache POI 版本。我需要采取哪些步骤才能实现这一目标?
最佳答案
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'
}
}
关于java - 如何从 Grails 插件更改 jar 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19118441/