gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

Hassle with proxy settings

Open f3rdy opened this issue 7 years ago • 5 comments

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']
}

f3rdy avatar Nov 28 '17 15:11 f3rdy

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.

srs avatar Nov 28 '17 20:11 srs

@bate fyi

f3rdy avatar Nov 29 '17 08:11 f3rdy

Is there any timeframe to get this improvement?

bate avatar Dec 08 '17 11:12 bate

Tried: gradlew npm_config_set_proxy_http://localhost

Does not work cause of the : char. Is there another way to hand over parameters?

stefanleh avatar Dec 22 '17 10:12 stefanleh

When this will be available?

kumar-tadepalli avatar Nov 08 '19 06:11 kumar-tadepalli