The build used to have this:
provided( "javax.enterprise:cdi-api:${cdiVersion}" )
Someone wanted to to be sure to forcefully override the version of CDI coming from Arquillian for testing, but it was not done very well, so we now have:
provided( "javax.enterprise:cdi-api:${cdiVersion}" )
compile( "javax.enterprise:cdi-api:${cdiVersion}" ) {
force=true
}
Which obviously hides the "provided" scope one. Really this should have been:
provided( "javax.enterprise:cdi-api:${cdiVersion}" ) {
force=true
}
or :
provided( "javax.enterprise:cdi-api:${cdiVersion}" )
testCompile( "javax.enterprise:cdi-api:${cdiVersion}" ) {
force=true
}
|