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

Java 如何从Grails插件更改jar版本?,java,grails,grails-plugin,Java,Grails,Grails Plugin,我正在使用这个Grails插件: 它使用ApachePOI。我想更改它当前使用的Apache POI的版本。我需要采取哪些步骤来实现这一点?Grails提供了在解析插件时排除某些依赖关系的功能。因此,您可以在BuildConfig.groovy中执行以下操作: dependencies { //version need to be replaced to the desired value compile('org.apache.poi:poi:version') compile

我正在使用这个Grails插件:


它使用ApachePOI。我想更改它当前使用的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' 
  }
}

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