bouncycastle - In grails 2.x version, the bouncy castle provided by the grails itself is present in the runtime environment - St

In grails 2.x version, the bouncy castle provided by the grails itself is present in the runtime enviro

In grails 2.x version, the bouncy castle provided by the grails itself is present in the runtime environment. Since the bc library in part of grail lib, is it possible to overwrite with latest bc library. Even though I defined the dependency as below, still it is using the old version present in grails lib directory.

dependencies {
    runtime '.bouncycastle:bcprov-jdk18on:1.80'
    runtime '.bouncycastle:bcpkix-jdk18on:1.80'
}

In grails 2.x version, the bouncy castle provided by the grails itself is present in the runtime environment. Since the bc library in part of grail lib, is it possible to overwrite with latest bc library. Even though I defined the dependency as below, still it is using the old version present in grails lib directory.

dependencies {
    runtime '.bouncycastle:bcprov-jdk18on:1.80'
    runtime '.bouncycastle:bcpkix-jdk18on:1.80'
}
Share Improve this question asked Mar 24 at 13:39 Janardhan BonuJanardhan Bonu 11 bronze badge
Add a comment  | 

2 Answers 2

Reset to default 0

Try to take a look at:
https://grails.github.io/grails2-doc/2.3.2/guide/conf.html#configurationsAndDependencies

Especially the sub section "Disabling transitive dependency resolution".

I have been using newer version of Grails that uses Gradle, so I can't exactly remember the Gant way...

Have you checked the results of "grails dependency-report command" ?

You have to know which lib is adding this transitive library and then excluding it with the exclude closure.

For example, for a Grails 2.5.5 project, I want to use the itext 2.1.7 and the plugin rendering is using an older version. So, I did this:

dependencies {
       runtime 'com.lowagie:itext:2.1.7'
}

plugins {
        compile (":rendering:1.0.0") {
            excludes 'itext'
        }
}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744248612a4565056.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信