Pass jvm args to runtime configuration

I’m using Gradle 4.10 with java 8.
I need to pass in native dll files when I run my application.
I have used this for my unit tests configuration which works perfectly when I execute the test task

tasks.withType(Test) {
     jvmArgs '-Djava.library.path=[path]

I now want to setup a similar configuration for runtime when I run the application through my IDE. I know I can add the jvm args to my IDE runtime configuration but preferably I want this in the gradle file so each member of the dev team does not have to specify this in their IDE runtime configuration.

Can anyone help with this please?