Gradle agent not recognized by IntelliJ
Hi,
i am trying to use https://github.com/ddimtirov/gwo-agent inside IntelliJ, so that the Gradle binaries are downloaded from our corporate mirror instead of services.gradle.org.
I have configured IntelliJ with some Gradle VM Options, as explained here: https://www.jetbrains.com/help/idea/gradle-settings.html
The option i have is the following: -javaagent:D:\src\gwo-agent.jar=distributionUrl~=@https://services.gradle.org/distributions@https://our-internal-repo@
When i change the version inside my gradle\wrapper\gradle-wrapper.properties file, and i execute a Gradle refresh inside IntelliJ, i get the following:
Unknown host 'services.gradle.org'.
Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
Note that i have an environment variable GRADLE_OPTS already configured at system level which contains the agent configuration.
First, I would expect IntelliJ to use properly the already configure GRADLE_OPTS.
If it's not possible, i would expect IntelliJ to use the configuration i explicitly set in its settings when using the Gradle wrapper.
Thanks
Please sign in to leave a comment.
There is no option in IDE interface to pass jvm options or command line parameters to a Gradle importer process directory. There is a related request: https://youtrack.jetbrains.com/issue/IDEA-132726 to add possibility to pass command arguments. I've filled the https://youtrack.jetbrains.com/issue/IDEA-212019 for the described problem.