dependency-management

Maven - Copy specific dependency with its transitive dependencies to a give location

北慕城南 提交于 2019-12-05 18:32:37
问题 I have a maven project which I have say spring framework libraries as dependencies, I want to copy spring framework dependencies with there transitive dependencies to a location specified. I have gone through maven dependency plugin guides at apache, I have several options where non of them will solve the complete problem. copy dependencies option <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions>

How can I use Gradle to just download JARs?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 16:22:10
I have a non-standard project layout. How can I use Gradle to just download a bunch of JAR dependencies into a lib directory, under the same directory where build.gradle is? For now, I don't need it to do anything else. Here is what I have so far: apply plugin: "java" repositories { mavenCentral() } buildDir = "." libsDirName = "lib" dependencies { runtime group: "...", name: "...", version: "..." } If I run gradle build , it builds an empty JAR file in the lib directory, instead of downloading my dependencies there. Switching "lib" with "." in the properties does not work either. Something

Is there any Maven like tool that works for many languages?

别说谁变了你拦得住时间么 提交于 2019-12-05 15:46:53
问题 I'm trying to find a tool like Maven (standardized build & packaging, artifact repo, etc) that supports more than Java (and C/C++), specifically Python and .NET (C#) as well. Especially good dependency management is desired. We're running a mixed shop of languages at our place, and the current homegrown python-based "über-buildsystem" should probably go away. Note that it doesn't attempt to do detailed builds, just handles dependencies between modules/projects, downloads compiled artifacts (a

Why were Spring Boot starter dependencies designed to be used contrary to the stated intent of Maven's transitive dependency mechanisms? [closed]

心已入冬 提交于 2019-12-05 13:48:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . According to the Maven dependency documentation it is intended that all compile dependencies be explicitly listed, rather than transitively used at compile time: it is intended that [transitive compile dependencies] should be runtime scope instead, so that all compile dependencies

How to have different dependencies depending on OS family

£可爱£侵袭症+ 提交于 2019-12-05 13:34:56
问题 I'm writing a cross-platform library that has platform specific dependencies, one for unix-like platforms, and one for windows. These crates only compile on specific platforms, wherefore I can't just add them all under dependencies normally. In the actual rust code I use cfg attributes, like #[cfg(unix)] to compile certain code for certain platforms, and I want to do something similar in the Cargo.toml, or in a build script, for the dependencies. Currently, I'm using target triplets like

How to avoid resource collisions in library jars?

折月煮酒 提交于 2019-12-05 13:01:23
I'm worried about the situation when libraries Foo and Bar each expose a resource on the classpath with the same name, say properties.txt in this example. Assuming a Maven set up and the jars are deployed with Maven, if I have this set up: Library Foo: $ cat Foo/src/main/resources/properties.txt $ Foo and Library Bar: $ cat Bar/src/main/resources/properties.txt $ Bar And an App that depends on them, whose pom looks something like this - in a nutshell this just says "build a jar-with-dependencies, and depend on Foo and Bar : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven

Should major SemVer updates cascade?

江枫思渺然 提交于 2019-12-05 12:02:46
So "myLibrary" references "anotherLibrary". Both libraries follow http://semver.org/ If I release a new version of myLibrary that forces consumers to update to a new major version of anotherLibrary should the major version of myLibrary also increment? This is specifically answered in the FAQ section of semver, where it is recommended that the major version be not bumped up. http://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api It really depends on if the public API of the main library changes. I tend to treat libraries as a black box. I don't need

Any library for visualizing module dependencies in Node.js?

我的梦境 提交于 2019-12-05 10:16:38
As part of a major refactoring of my Node.js app (going DDD), I'm looking for a library that through inspecting code is able to visualize module dependencies (by means of 'requiring' them) between different node-modules. Visualizing in Table-format is fine, I don't need fancy graphs. Any Node libraries out there? I do not know if this exists, but I found the following by quick search : http://toolbox.no.de/packages/subdeps http://toolbox.no.de/packages/fast-detective Maybe subdeps is not exactly what you want right now, but I think you could use these projects to make that project yourself? If

Gradle : Copy all test dependencies to a zip file

给你一囗甜甜゛ 提交于 2019-12-05 06:13:45
I am quite new to gradle, so maybe I am asking something quite easy.... I am looking for a solution to put all dependencies in scope testCompile into a zip file. I checked http://forums.gradle.org/gradle/topics/how_do_i_make_a_zip_to_contain_dependency_artifacts but this seems to work only for runtime dependencies. I also checked http://www.gradle.org/docs/current/userguide/working_with_files.html Chapter 16.8, but that did not work either. When I access via configurations.testCompile.allArtifacts.files , my zip is always empty. When I acces via configurations.testCompile.allDependencies I can

Should dependencies be deleted from disk automatically after install/update with Composer?

梦想的初衷 提交于 2019-12-05 04:37:52
After removing a dependency from composer.json and running install or update, should I expect the files to be removed automatically from disk? I had to remove them manually, not sure if I am supposed to. Running a composer update will remove packages you removed from your composer.json. Since install uses composer.lock instead of composer.json it will not remove packages removed from your composer.json . However, you should get a message that your lock file is out of sync with your composer.json and you should run an update. 来源: https://stackoverflow.com/questions/11680395/should-dependencies