Comments (5)
Hi.
Can you show me how you set up your proxy in gradle?
Thanks.
from gradle-node-plugin.
In gradle.properties:
systemProp.http.proxyHost=localhost
systemProp.http.proxyPort=3128
systemProp.http.nonProxyHosts=localhost
systemProp.https.proxyHost=localhost
systemProp.https.proxyPort=3128
systemProp.https.nonProxyHosts=localhost
This references a cntlm proxy I have running on my local machine to deal with windows proxy weirdness.
from gradle-node-plugin.
@yellek is the 407 from Gradle or the result of running npm from gradle?
I am guessing the plugin calls out to npm which is configured differently
I've had some shocking trouble behind ntlm proxies in some corporations too and even the above wont help.
from gradle-node-plugin.
I am behind a proxy, and with latest node and npm everything worked with proxy set as abose plus
.npmrc:
https-proxy=...
proxy=...
from gradle-node-plugin.
a hacky workaround to use JVM http settings. the finalizedBy dependency could be added to npmInstall aswell unfortunately our gulp tasks require them aswell
npmInstall.dependsOn 'npmHttpProxy'
npmInstall.dependsOn 'npmHttpsProxy'
gulpBuild.finalizedBy 'removeNpmHttpProxy'
gulpBuild.finalizedBy 'removeNpmHttpsProxy'
task npmHttpProxy(type: NpmTask, group: 'node') {
args = ['config', 'set', 'proxy', "http://${-> System.properties["http.proxyHost"]}:${-> System.properties["http.proxyPort"]}"]
}
task removeNpmHttpProxy(type: NpmTask, group: 'node') {
args = ['config', 'delete', 'proxy']
}
task npmHttpsProxy(type: NpmTask, group: 'node') {
args = ['config', 'set', 'https-proxy', "http://${-> System.properties["https.proxyHost"]}:${-> System.properties["https.proxyPort"]}"]
}
task removeNpmHttpsProxy(type: NpmTask, group: 'node') {
args = ['config', 'delete', 'https-proxy']
}
npmHttpProxy.onlyIf { System.properties.containsKey("http.proxyHost") }
npmHttpsProxy.onlyIf { System.properties.containsKey("https.proxyHost") }
from gradle-node-plugin.
Related Issues (20)
- Version issue during build HOT 1
- How to pass command line argument to npm task in node application HOT 2
- Cannot download node version HOT 2
- How to use npm ci instead of npm install? HOT 3
- No value has been specified for property 'packageJsonFile'. HOT 2
- Error messages that someone can actually do something about. HOT 2
- Upgrading node to version 12.15.0 build failure HOT 9
- npm WARN deprecated request HOT 2
- can't find nodeJS 10.15.3 ? HOT 14
- Set tag when publishing HOT 1
- Plugin with id 'com.moowork.node' not found. HOT 3
- Could not get unknown property 'npm_run_build' for project HOT 1
- How to install and build additional dependency? HOT 1
- download = false HOT 2
- com.moowork.node plugin throwing error when i try ./gradlew build HOT 3
- Build fails with Gradle 7 HOT 5
- Cannot use the newest version with SonarQube Plugin HOT 3
- Node download on s390x Linux on Z platform is not supported HOT 2
- Compatible with gradle 7.1 not working HOT 2
- Support for limit on parallel task runs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-node-plugin.