Lack of language level restrictions in the pom
westonal opened this issue · comments
Problem: Build servers build against Java 1.7
Lack of language restriction in POM means that locally Java 1.8 is acceptable and it is not apparent until we start PR that we have used some Java 8 method/class.
The ide and local build should restrict language use, the simplest way would be to include this in the POM.
@dmarkov what's happening with this task?
@westonized our JDK version is 1.6 and inherit that from jcabi-parent POM. I don't think we should duplicate that information in our own POM. or I didn't understand the question?
@yegor256 If it is inherited, how come I have no issues building against java 1.8 features and methods locally. And I only discover it's a problem when I start a pull request.
That is I can locally build this project with mvn clean install -Pqulice
referencing Java 8 methods and classes.
@westonized OK, I'm closing. thanks.