Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

Pass jvm args to runtime configuration

$
0
0

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.


Viewing all articles
Browse latest Browse all 19854

Trending Articles