dependency-management

Discover latest versions of Composer packages when dependencies are locked

纵然是瞬间 提交于 2019-12-23 11:51:26
问题 Let's say I have a composer.json file with locked dependencies: { "require" : { "zendframework/zendframework" : "2.4.2" }, "require-dev": { "phpunit/phpunit": "4.6.6" } } I want to do that because would like to update dependencies manually, so I won't be in a situation where my build fails or other developers experience issues I don't have because Composer installed a different version of the package. Is there a good way to use Composer to list all newer versions of the locked packages,

Gradle dependencies - Latest snapshot

ぃ、小莉子 提交于 2019-12-23 10:59:30
问题 I have a gradle multi-project build. In one project, I have defined some dependencies on other JARs, and have used the '+' to always depend on the latest version of the JAR e.g. runtime group:'com.app', name: 'core', version: '+' This works great, and anytime I re-build a version of the core project, this project picks up the latest JAR as expected. However, this only seems to work when I explicitly build the JAR with a version - but SNAPSHOT builds are not picked up. For example, if I have

Proper way to handle optional package dependencies

巧了我就是萌 提交于 2019-12-23 10:15:42
问题 In a package I'm developing, several different methods of estimating are provided. Typically, each of these depends on functionality provided by other packages (in some case, with version requirements). Up to now, I've simply put all those packages in the "depends" section of my description file, but the number of packages that my own package now "depends" upon, even though for most users only one of those will ever be relevant, so I was hoping that packages could be installed/loaded only as

How to fail maven build if newer version of dependency exists in repository?

微笑、不失礼 提交于 2019-12-23 09:26:04
问题 Well, the problem is that I want maven to check dependency version on build and warn me if there are any newer dependency versions (in fact - notify me if I use an outdated version of some module). My maven module A has the following dependency: <dependency> <groupId>com.example.mycompany</groupId> <artifactId>commons</artifactId> <version>1.0.3</version> </dependency> And com.example.mycompany:commons module in fact can already have 1.0.4 version. Is there any way to check version of the

NSOperationQueue: a sequence of NSOperation's with dependencies VS (maxConcurrentOperationCount == 1)?

蓝咒 提交于 2019-12-23 02:46:26
问题 For example I have 3 objects: NSOperation *op1 = ...; NSOperation *op2 = ...; NSOperation *op3 = ...; [op3 addDependency:op2]; [op2 addDependency:op1]; NSOperationQueue *queue = ...; queue.maxConcurrentOperationCount = 1; [queue addOperations:@[op1, op2, op3] waitUntilFinished:NO]; I could simply add all the operations in correct order. But for example if op2 is cancelled then I should also cancel op3 and I can't fully clear a queue in this case. My questions: 1)Is it safe to combine such

Dependency management in OSGI bundle ServiceMix

风格不统一 提交于 2019-12-23 01:28:30
问题 Hi I am new to ServiceMix, so probably I am asking same question which might be answered but I couldn't figure out. My doubt is how do I manage compile time vs runtime dependencies when using bundle in ServiceMix OSGI. That is if I am building a .jar workable(by unit tests aleast) artifact with maven where all compile time dependencies say example(camel,spring) are handled by pom.xml dependencies and are loaded into jar as needed libs for successful build. So when I am deploying the jar in

Dependency chain conflicts for Hibernate and Apache Felix

删除回忆录丶 提交于 2019-12-22 11:37:39
问题 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

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

喜你入骨 提交于 2019-12-22 10:43:22
问题 If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> And my ivy.xml file includes: <dependency org="org.junit" name="com.springsource.org.junit" rev="4.4.0" /> From when

How to generate a dependency diagram from a set of XSD files?

[亡魂溺海] 提交于 2019-12-22 10:34:58
问题 See the title: I have around 50 XSD files importing each other (with tags) and I need to analyze their dependencies. Do you know any software (preferably free) to generate a dependency diagram automatically from these files? 回答1: I did not find any existing program to do that, so... I developed my own! It is called GraphVisu. There is a first program to generate the graph structure from seed XSD files, and another one to visualise graphs. I also included a detection of clusters of

How can I pin a version of a Haskell dependency to a version of an underlying native dependency with Cabal?

若如初见. 提交于 2019-12-22 10:31:25
问题 In my particuar case, I have a dependency in my Cabal file on the Haskell package bindings-libzip . In particular, I could accept several different versions of libzip , e.g. bindings-libzip-0.11 or bindings-libzip-0.10 . These in turn have a dependency on the respective native C libzip libraries versions 0.11 and 0.10 . Therefore I have bindings-libzip >= 0.10 < 0.12 in my .cabal file. The Haskell package bindings-libzip-x specifies with PkgConfig-Depends that libzip version x must be present