gradle-node-plugin
gradle-node-plugin copied to clipboard
Hassle with proxy settings
I am in a proxy environment on my CI host and I've set the GRADLE_OPTS as well as JAVA_OPTS with the corresponding proxy settings.
Other gradle related tasks use these settings but fetching the node application seems to be stuck on the CI host.
How are proxy settings applied to the way the node binary is fetched and/or npm_install is called.
My build.gradle uses this:
// node + npm dependencies
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2"
}
}
dependencies {
classpath "com.moowork.gradle:gradle-node-plugin:1.2.0"
}
}
apply plugin: 'com.moowork.node'
node {
version = '6.9.5'
npmVersion = '1.4.9'
download = true
workDir = file("${buildDir}/node")
npmWorkDir = file("${buildDir}/npm")
}
npm_install {
args = ['csso']
}
Hi.
Right now node
, npm
and yarn
are installed from fixed urls and does not listen to proxy settings. I will mark this as a potential improvement.
@bate fyi
Is there any timeframe to get this improvement?
Tried: gradlew npm_config_set_proxy_http://localhost
Does not work cause of the : char. Is there another way to hand over parameters?
When this will be available?