【问题标题】:Right way to force grails upgrade a library used by a plugin强制grails升级插件使用的库的正确方法
【发布时间】:2014-01-02 10:03:04
【问题描述】:

我正在使用 Grails 的 Rendering plugin 来渲染 PDF 页面,但是渲染 0.4.4 中包含的飞碟版本显然存在问题。 我想使用渲染但强制 grails 直接升级 fly-sauce-pdf。

我的 BuildConfig.groovy 看起来像:

plugins {
..
        compile 'org.xhtmlrenderer:flying-saucer-pdf:9.0.4'
        compile (":rendering:0.4.4") { excludes "flying-saucer-pdf" }
}

得到的错误是:

[FAILED     ] org.xhtmlrenderer#flying-saucer-pdf;9.0.4!flying-saucer-pdf.zip:  (0ms)
==== grailsPlugins: tried
...

看起来我在直接包含 fly-saucer-pdf 时做错了。调用它以与项目一起编译的正确方法是什么?

【问题讨论】:

    标签: grails grails-plugin flying-saucer


    【解决方案1】:

    我认为问题在于 fly-saucer-pdf 是一个库而不是一个插件,所以你应该把它放在依赖项部分:

    dependencies {
            compile 'org.xhtmlrenderer:flying-saucer-pdf:9.0.4'       
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-12
      • 2014-02-25
      • 1970-01-01
      • 2015-09-24
      • 1970-01-01
      • 2011-09-21
      • 1970-01-01
      相关资源
      最近更新 更多