I'm wondering how IDEA determines which language level that applies to the source code of a library.
I have a project with the following depencies: testCompile group: 'junit', name: 'junit', version: '4.12'
Language Level is set to SDK Default (i.e. Java 7) for my project. When I go to the source of org.hamcrest.Description @Override is flagged as error: (@Override is not allowed when implementing interfaces).
How does IDEA determine the language level of a library? Is it possible for libraries to have a language level that differs from the projects language level?