dependency-management

pip: dependency on javascript library

南笙酒味 提交于 2019-12-06 14:27:34
问题 Dependencies to other python libraries can be declared by pip's requirements.txt . But is it possible to declare a dependency to a pure js library? The library is available from github. The files should be downloaded an made available for django static file handling. Background: setting up new development environments of a custom django application should be easy. How do you handle this in your development environment? 回答1: As pointed out by @guettli you can use fanstatic packages. E.g.

Graph visualization of existing .NET code [closed]

喜你入骨 提交于 2019-12-06 11:38:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I've seen that VS 2010 Ultimate can generate model graph from existing code. But VS 2010 Ultimate version costs 11K US$, way too much for my budget. Is there any good alternative to do graph visualization of .NET code? 回答1: NDepend comes with a dependency graph coupled with a dependency matrix. You can try NDepend

How can I exclude plugins jar required at build time?

点点圈 提交于 2019-12-06 07:49:32
问题 I have Grails plugin that do some job (precompiles static files) at build time (before war is built). To do its job some jar dependencies are required. So this dependencies are required only at build time. How can I exclude them from final WAR? 回答1: Add to your BuildConfig.groovy : grails.war.resources = { stagingDir -> delete(file:"${stagingDir}/WEB-INF/lib/whatever.jar") } 回答2: This is best done using script. I had to employ this when deploying a WAR for a production that required excluding

How to specify properties on groups of dependencies in Gradle?

扶醉桌前 提交于 2019-12-06 07:27:19
Using Gradle, I'd like to be able to disable transitivity on one group of dependencies, while still allowing on others. Something like this: // transitivity enabled compile( [group: 'log4j', name: 'log4j', version: '1.2.16'], [group: 'commons-beanutils', name: 'commons-beanutils', version: '1.7.0'] ) // transitivity disabled compile( [group: 'commons-collections', name: 'commons-collections', version: '3.2.1'], [group: 'commons-lang', name: 'commons-lang', version: '2.6'], ) { transitive = false } Gradle won't accept this syntax. I can get it to work if I do this: compile(group: 'commons

Dependency chain conflicts for Hibernate and Apache Felix

倾然丶 夕夏残阳落幕 提交于 2019-12-06 04:48:54
I understand the concept of OSGi complaining about multiple dependency chains - a package is available more than once and when the importing bundle doesn't specify exactly which version it needs, so the OSGi container can run into the trouble of not knowing what to provide. Unfortunately I ran into such a problem this week, but both involved bundles are third party bundles, so I can't really influence their imports and exports. Here are the two error messages I get: org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision org.hibernate.core [28.0]

When do you use “require-dev”? What are common dev dependencies?

余生长醉 提交于 2019-12-06 03:58:26
问题 While I'm familiar with the basics of composer.json and specifying dependencies under the require key I haven't quite understood the purpose of require-dev — Composer's documentation states: require-dev (root-only) Lists packages required for developing this package, or running tests, etc. The dev requirements of the root package are installed by default. Both install or update support the --no-dev option that prevents dev dependencies from being installed. In the abstract it makes sense, but

Dart: pub get vs pub upgrade

对着背影说爱祢 提交于 2019-12-06 02:19:09
According to the pub get docs the main difference between pub get and pub upgrade is: If a lockfile already exists, pub get uses the versions of dependencies locked in it if possible. If a dependency isn’t locked, pub will get the latest version of that dependency that satisfies all the version constraints. This is the primary difference between pub get and pub upgrade, which always tries to get the latest versions of all dependencies. But this leaves me with a few questions. What do they mean by " If a dependency isn't locked ... ? Locked?!? Like in version control? File system lock? What is

Need presentation materials for convincing a customer to use Maven

余生颓废 提交于 2019-12-06 01:31:04
问题 My customer needs a more organized inventory of all 3rd-party libraries (such as JAR files) that are used in production for their projects. I am involved with a number of their Java-based projects. Their inventory has not been consistently maintained in the past and the time has come to account for all the libraries that are currently being used (there are quite a few!) and to enforce a structured process for introducing new libraries into the build environment. I have tried pitching the idea

How to inject fake, stubbed or mock dependencies for Integration tests using Typhoon

*爱你&永不变心* 提交于 2019-12-06 01:23:54
I'm trying to write integration tests using KIF. My question is: How to inject stubbed, mock or fake dependency for particular view controller? Each view controller using dependencies like a data model, http client, store manager etc. comes from ModelAssembly, ApplicationAssembly, ManagerAssmebly. On storyboard, for login view i have a key path, containing value "loginViewController". Creating view controllers: ViewControllersAssembly.h @interface ViewControllersAssembly : TyphoonAssembly @property (nonatomic, strong) ModelAssembly *modelAssembly; - (id)loginViewController; @end

How do I get Ivy to copy the dependencies to the lib directory when using it from the command line?

主宰稳场 提交于 2019-12-06 00:53:14
问题 I have the following command: java -jar ...\ivy-2.2.0-rc1.jar -ivy ...\ivy.xml Which I am expecting to resolve the dependencies and copy them to the lib folder of my project. Ivy seems to resolve the dependencies but does not do the copy. If I run the ant task the copy happens correctly. Does anyone know why the copy to lib does not happen with my command line call? 回答1: You're missing the retrieve option. java -jar $IVYJAR \ -settings ivysettings.xml \ -ivy ivy.xml \ -retrieve "lib/[artifact