Closed ravichoudhary1412 closed 5 months ago
Your error is for getting gradle-node-plugin
, which doesn't have anything to do with ml-gradle.
Assuming you'd get the same error for ml-gradle though if you remove gradle-node-plugin from your build.gradle file, it certainly sounds like an issue with your proxy configuration. I recommend trimming your build.gradle file down to a single plugin - start with just the gradle-node-plugin - and use that to debug the problem with your proxy settings.
I am closing this ticket because the problem is outside the scope of ml-gradle, and likely outside the scope of gradle-node-plugin as well. For the general problem of "Unable to download Gradle plugins when using a proxy server", I recommend looking into the Gradle documentation and forums for support.
I encounter an issue with Gradle when attempting to run a task on a Linux server. Despite configuring the correct Java and Gradle versions, I get errors when Gradle tries to resolve plugins. Here's a detailed breakdown of my setup and the error:
Linux Environment:
Gradle version: 8.8
Java version: openjdk version "1.8.0_412"
Java home: Set in /etc/profile as
build.gradle:
Error when running following command
./gradlew taskname -PmlHost="localhost" on the linux server, getting following error :
However, when I use wget to check the connection, I get a 200 OK response:
wget https://plugins-artifacts.gradle.org/com.github.node-gradle/gradle-node-plugin/2.2.0/8a8d8d9c9a05f28650dda340493dc23a9099e049a49ca39b15799b890ccc8f4c/gradle-node-plugin-2.2.0.pom?X-OpenDNS-Session=_850b71cf0c48e04902097a60b09b5f15dfa19270fc47_HRuoOzdJ_
and same code when I am running on my local system it is work fine There(window system) I am using java version "1.8.0_202"
Note : we are also using proxy in our case and save the proxy configuration in gradle.properties
Any help or insights into this issue would be greatly appreciated!