Gradle 5.0 transitive dependency scope

Hi,
I’m trying to migrate a project to Java11 and Gradle 5.0.
I have a problem with transitive dependency scopes for the libraries that I am using. When using gradle version < 5 the scopes appear as ‘compile’ in IDEA (intellij 2018.2.7) , but when I change to 5.0 all the transitive dependencies appear as ‘runtime’. I’m not sure if it’s a IDEA or Gradle issue.
Any help is appreciated.

Gradle 5’s Maven support is not backwards compatible, in a manner of speaking. It does not handle Maven scopes in the same way as previous versions.

https://docs.gradle.org/5.0/userguide/upgrading_version_4.html#rel5.0:pom_compile_runtime_separation