Alex Nordlund
Alex Nordlund
There's a perfect component for this: `ComponentMetadataVersionLister`, so I figured I might as well give it a try and the following rough sketch works as expected. So even though I...
(dynamic versions will require a `ComponentMetadataVersionLister` to work, but the rest is ok)
`ComponentMetadataVersionLister` will never trigger unless you're trying to use a dynamic version (e.g. `10.+`).
In this case you want to use `distBaseUrl = null` and manually add an ivy repo with [authentication](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.repositories.IvyArtifactRepository.html#org.gradle.api.artifacts.repositories.IvyArtifactRepository:authentication) Something like ```groovy repositories.ivy { setUrl('https://foo') credentials { username "me" password "hunter2"...
I should've added this to the documentation earlier but I forgot
Out of curiosity, how many files do you have in `node_modules` and how long does the scanning take?
This isn't really up to gradle-node-plugin, it simply asks npm to install, if everything is installed already the task is up-to-date and npm is not even invoked. Now let's say...
*sigh* it's in [the configuration](https://docs.npmjs.com/misc/config#offline), but you can't easily find it with a search engine because everyone is publishing packages called some mix of "install", "offline" and an additional word.
Where I work we use `npm run dist` to build our application, so we've got a `npmRunDist` task we depend on
So this plugin provides an easy way to work with npm/yarn/etc, it doesn't build things itself like the java plugin does. I'm not actually certain how you'd accomplish what you...