java - 如何从 Grails 插件更改 jar 版本?

标签 java grails grails-plugin

我正在使用这个 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/

相关文章:

java - 如何处理 Java8 并行流中的状态变量?

java - 如何调试第三方Intellij IDEA插件?

grails - 数据驱动的Spock测试

grails - 文件上传不适用于Grails中的默认脚手架

grails - Grails 应用程序中的 shiro 配置错误

java - 使用java将输入文件的所有数据获取到变量中。类似 perl 中的 undef($/)

java - 嵌套循环继续java

grails - 如何将值从 Controller 传递到gsp页面

eclipse - 无法识别Grails RestBuilder插件

Grails 1.3.5 和 Spring Security Core