JAVA_HOME environment is set to 1.8_221
Project SDK is set to java version 1.8
Open terminal in Idea 2019.1 and check java version: it will be similar to JAVA_HOME and version of Java used in project
Open terminal in Idea 2019.2 and check java version: terminal will use bundled java version instead of JAVA_HOME and version of Java used in project
Probably you can provide workaround to disable this behavior?
It is critical for us to use the same java version in terminal as it set for project