dependency-management

How can I version bump all my dependencies?

好久不见. 提交于 2019-12-04 13:12:48
Having yarn outdated is quite informative but I'd like to avoid running over package by package doing yarn upgrade . From yarn's documentation, just yarn upgrade without arguments is said to upgrade all dependencies but there's no change in my project's package.json and yarn outdated shows the same packages versions than before. Is there some command or argument that just bumps all my dependencies? If not, is the practice discouraged in some way? You can update your packages to the latest version specified in the package.json using yarn upgrade without any args. This is taken from the docs :

What if Dependency Injection is not possible?

吃可爱长大的小学妹 提交于 2019-12-04 12:22:38
问题 After much kicking and screaming, I'm starting to accept DI despite how much cleaner SL may seem as dependencies grow. However, IMO there's still a significant show-stopper with regards to DI: DI is not possible when you don't have control over an object's instantiation. In the ASP.NET world, examples include: HttpModule, HttpHandler, Page, etc. In the above scenario we would resort to static service location to resolve dependencies, typically via HttpContext.Current , which invariably infers

iPhone Project Dependency Management

强颜欢笑 提交于 2019-12-04 08:40:40
问题 Has anyone had any success in finding a reliable, generalised solution for managing dependencies for iPhone projects? I'm looking to split my iPhone applications up into reusable components and then pull them into projects that require them. I guess I'm looking for a Maven-esque workflow but for Xcode/iPhone projects. I've tried a number of things so far such as: I've created a Maven plugin for iPhone applications which automates the building and signing of the applications but I constantly

Can you set conditional dependencies for Python 2 and 3 in setuptools?

为君一笑 提交于 2019-12-04 08:20:20
问题 When releasing a Python egg with support for both Python 2 and 3, can you specify dependencies that change depending on which version you're using? For example, if you use dnspython for Python 2, there is a Python 3 version that is called dnspython3 . Can you write your setuptools.setup() function in such a way that your egg is useable to both versions if that is the only roadblock, i.e., if you have run 2to3 to ensure that the rest of your library is compatible with both versions. I have

Maven sourcing dependency version from great-grand-parent instead of our parents dependency-management

孤者浪人 提交于 2019-12-04 07:57:13
Below shows the hierarchy of my POMs. You can see that we have a company parent-pom for spring boot projects. This POM has spring-boot-starter as it's parent, and it imports our own dependency-management BOM. [INFO] --- hierarchy-maven-plugin:1.4:tree (default-cli) @ user-service --- [INFO] PARENT com.MY_COMPANY.platform:user:3.20.14-SNAPSHOT [INFO] PARENT com.MY_COMPANY.platform:spring-boot-parent:3.20.12-SNAPSHOT [INFO] PARENT org.springframework.boot:spring-boot-starter-parent:1.5.12.RELEASE [INFO] PARENT org.springframework.boot:spring-boot-dependencies:1.5.12.RELEASE <<<< This pom defines

Maven Multi Module benefits over simple dependency

回眸只為那壹抹淺笑 提交于 2019-12-04 07:44:02
问题 I have some years of experience with maven projects, even with multi modules ones (which has made me hate the multi modules feature of maven (so the disclaimer is now done)) and even if I really like maven there is something I cannot get a clear answer about : What is a typical usecase of a multi module maven project ? What is the added value of such a structure compared to simple dependencies and parent pom ? I have seen a lot of configuration of multi module projects but all of them could

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

孤街醉人 提交于 2019-12-04 07:36:43
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 I'm having a hard to imagining the situations when I'd need this functionality. What are the practical

Maven POM file: any rule on ordering of elements and sections?

你。 提交于 2019-12-04 06:17:44
Concerning the pom.xml Maven file: Is there any specific rule to apply to the ordering of declared sections? Does it have any importance or impact on the build? Shall I follow any official convention? Although in most of the cases it is irrevant whether one section is declared before another, readeabilty could be indeed impacted when choosing a weird layout (e.g. Maven coordinates at the end). But that's not the most important point, because yes , ordering of certain elements can impact your build . Order of plugin declarations The order of plugin sections wihtin the build / plugins section

How to release Maven multi-module project with inter-project dependencies?

安稳与你 提交于 2019-12-04 06:07:48
Lets say we have 3 layers project. DB, Business, Web and aggregating pom. Project |-DB | |-pom.xml |-Business | |-pom.xml |-pom.xml All modules are ment to be released and branched together, so Aggregator pom is configured to assign the same version to all submodules. We have the following versions: DB-0.1-SNAPSHOT Business-0.1-SNAPSHOT which depends on DB-0.1-SNAPSHOT Web-0.1-SNAPSHOT which depends on Business-0.1-SNAPSHOT When doing release:prepare , all versions updated to 0.1, but prepare fails because there is no DB-0.1 in dependency yet. One solution is to create different projects for

maven dependencies groovy

谁说我不能喝 提交于 2019-12-04 05:54:12
I'm running a project that has a dependency on groovy 1.7-beta-1. The gmaven plugin uses groovy version 1.6 as a dependency. In my pom, I specify in the dependency management section the grooyv-all version as : <dependencyManagement> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.7-beta-1</version> </dependency> </dependencies> </dependencyManagement> Yet when I run maven in debug mode I see that groovy 1.6 is being used for a dependency to the gmaven plugin. I thought my dependency management section would override this so