Consider making javax.enterprise:cdi-api dependency "provided"

Description

Commit 65bbf28d3c fixed issue and at the same time moved the javax.enterprise:cdi-api dependency from the provided scope into compile.

I'm not sure if that change was intentional or not but it can have an unfortunate knock on effect with hibernate-validator which since now requires a valid EL implementation. Since javax.enterprise:cdi-api pulls in a el-api, you now need to have the com.sun.el.ExpressionFactoryImpl class on your classpath. If you use a different EL provider that ships its own ExpressionFactory it may not get picked up (depending on the order of your classpath).

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Phillip Webb

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Minor
Configure