Discussion:
exclude bcprov jar from 'build'
jgzornoza
2011-09-15 17:10:59 UTC
Permalink
Hello
I'm trying to test some functionality with last BouncyCastle libs, version
1.46, and there're some collision problems with classes from version 1.45.
I'm playing with BuildConfig.groovy to exclude jars from 1.45, and with this
conf:
...
inherits("global") {
excludes
'org.bouncycastle:bcprov-jdk15:1.45','org.bouncycastle:bcmail-jdk15:1.45',
'org.bouncycastle:bcpg-jdk15:1.45'
}

dependencies {
build ('org.bouncycastle:bcmail-jdk16:1.46',
'org.bouncycastle:bcprov-jdk16:1.46') {
excludes 'bcprov-jdk15:1.45','bcmail-jdk15:1.45',
'bcpg-jdk15:1.45'
}
test ('org.bouncycastle:bcmail-jdk16:1.46',
'org.bouncycastle:bcprov-jdk16:1.46') {
excludes 'bcprov-jdk15','bcmail-jdk15',
'bcpg-jdk15:1.45'
}
provided ('org.bouncycastle:bcmail-jdk16:1.46',
'org.bouncycastle:bcprov-jdk16:1.46') {
excludes 'bcprov-jdk15','bcmail-jdk15',
'bcpg-jdk15:1.45'
}

compile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.1',
'org.apache.httpcomponents:httpmime:4.1',
'org.bouncycastle:bcmail-jdk16:1.46',
'org.bouncycastle:bcprov-jdk16:1.46',
'javax.mail:mail:1.4.1',
'javax.activation:activation:1.1.1',
'com.h2database:h2:1.3.152',
) {
excludes 'xalan', 'xml-apis', 'groovy','commons-io',
'bcprov-jdk15', 'bcprov-jdk15', 'bcpg-jdk15:1.45'
}
runtime ('mysql:mysql-connector-java:5.1.13') {
excludes
'org.bouncycastle:bcprov-jdk15:1.45','org.bouncycastle:bcmail-jdk15:1.45',
'org.bouncycastle:bcpg-jdk15:1.45'
}
...


Production builds are correct but I'm having problems at development.
When I run 'grails dependency-report' I can see that bcprov-jdk15 jar
doesn't appears on 'runtime' or 'provided' but appears on 'build'
dependencies.


Environment:
grails-2.0.0.M2
Windows 7
STS 2.8.0.SNAPSHOT

Any advice to remove bcprov-jdk15 from 'build'?

Thanks.

--
View this message in context: http://grails.1312388.n4.nabble.com/exclude-bcprov-jar-from-build-tp3816207p3816207.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
jgzornoza
2011-09-16 09:35:05 UTC
Permalink
This in BuildConfig.groovy seems to work:

...
inherits("global") {
excludes 'bcprov-jdk15', 'bcpg-jdk15'
}


dependencies {

compile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.1',
'org.apache.httpcomponents:httpmime:4.1',
'org.bouncycastle:bcprov-jdk16:1.46',
'org.bouncycastle:bcmail-jdk16:1.46',
'org.bouncycastle:bcpg-jdk16:1.46',
'javax.mail:mail:1.4.1',
'javax.activation:activation:1.1.1',
'com.h2database:h2:1.3.152',
) {
excludes 'xalan'
excludes 'xml-apis'
excludes 'groovy'
excludes 'commons-io'
}
runtime 'mysql:mysql-connector-java:5.1.13'
}
...

Thanks.

--
View this message in context: http://grails.1312388.n4.nabble.com/exclude-bcprov-jar-from-build-tp3816207p3817706.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...