dependency-management

Can I specify dependency directories when dynamically loading assemblies?

纵然是瞬间 提交于 2020-01-05 07:26:33
问题 I'm wondering if a setup like this is possible: c:\eflow\proxy.dll (main DLL loaded by application) c:\eflow\application\dynamic.dll (DLL dynamically loaded by proxy.dll) c:\eflow\dependency.dll (dependent DLL required by dynamic.dll) Basically, I'd like to dynamically load a DLL (to instantiate classes, etc) but have that DLL's dependencies stored in a different location. Is this possible? I don't want to have a copy of these dependent DLLs in every sub-directory... (and I can't load them in

Multiple jars of same groupId and artifactId in WEB-INF

萝らか妹 提交于 2020-01-05 07:22:23
问题 I am using maven version 3.5.3 and while building my project, I am getting two versions of apache commons-lang3 in my WEB-INF ( v3.1 and v3.4 ) even when I have explicitly specified v.3.4 in my " dependency-management " of my parent pom.xml. Both have the same groupId and artifactId. I am confused. Is this expected behavior of maven? Under what circumstances does this happen? I was under the impression that maven resolves all dependencies to only one jar if dependencies have same groupId and

How do I set an upper bound on Gradle dynamic versions?

社会主义新天地 提交于 2020-01-04 21:44:46
问题 I can't find any explicit documentation on Gradle dynamic version syntax -- the examples in the official docs are 1.+ and 2.+ , neither of which appears to have an upper bound. Say I have 1.0-SNAPSHOT and 2.0-SNAPSHOT in my repository, and I want a certain project to pull in the first or any future stable 1.x , but not the second. I've tried both Maven syntax ( [1.0,2.0) ) and Ivy syntax ( [1.0,2.0[ ). Both of these pull in 2.0-SNAPSHOT . Why? Is 2.0-SNAPSHOT considered "less than" 2.0 ? On

How do you Cross Compile to Scala.JS with Gradle

二次信任 提交于 2020-01-04 11:04:42
问题 When adding Scala.JS dependencies in SBT you use %%% . E.g. libraryDependencies += "be.doeraene" %%% "scalajs-jquery" % "0.9.0" How is this done in the Gradle Scala plugin? 回答1: %%% = the scala version + scalajs version. So something like: val scalaJsDomV = "0.9.1" libraryDependencies ++= Seq( "org.scala-js" %%% "scalajs-dom" % scalaJsDomV ) would be compile "org.scala-js:scalajs-dom_sjs0.6_2.12:0.9.1" Or if you used the ext for multiple used versions it would be something like: ext {

Android: how to use Espresso 2.2.2 with Support 25.0.0?

南楼画角 提交于 2020-01-04 06:15:44
问题 How can I get this working? I read many similar strategies, alas. Using a support lib higher than 23.1.1 fails times and again. dependencies { compile 'com.android.support:design:25.0.0' compile 'com.android.support:support-v4:25.0.0' compile files('libs/slf4j-android-1.5.8.jar') androidTestCompile 'com.android.support:support-annotations:25.0.0' androidTestCompile( 'com.android.support.test:rules:0.5') androidTestCompile( 'com.android.support.test.espresso:espresso-contrib:2.2.2')

How do you handle web hosted .jar-files as dependencies in Gradle?

强颜欢笑 提交于 2020-01-04 06:02:13
问题 I'm pretty new to the JVM World, and I find Maven and Gradle quite extraordinary pieces of tools to handle build and dependencies. I need to incorporate two jar-files in my solution. They are not hosted in any Maven repository. Must i use a libs-folder and share the files among the developers or in the repo? The jar files are not controlled by me, and i do not want to go through the hustle of putting up something on Maven Central or something similar. I trust the url of the jar files to be

What's the best way to list a non-ruby dependency of a gem?

走远了吗. 提交于 2020-01-04 04:31:05
问题 I am writing a ruby gem that I would like to use an open source program distributed as python. I don't have the time to port the python program to ruby, and I want to manage the external dependency as automatically as possible. I'm thinking of using the Gem.pre_install hook to automatically easy_install the python package I'm interested in. http://rubygems.rubyforge.org/rubygems-update/Gem.html#method-c-pre_install I'd appreciate suggestions of better ways, or support of pre_install, if it's

Coffeescript, Backbone and load order

浪子不回头ぞ 提交于 2020-01-03 18:59:32
问题 Consider this Coffeescript class, in an app where each class lives in its own file. class Manager extends Person title: titles["manager"] If that file is loaded before the "titles" object, an error generated. I'm assuming this is because of Coffeescripts safety wrapper which is performing ".call(this)" when this file is first loaded? Otherwise, if I were to delay running any code until after the entire page had fully loaded ($(document.ready()), I could be sure that all the javascript files

Automating Leiningen local dependency management

匆匆过客 提交于 2020-01-03 13:39:49
问题 I am using a local maven repository to house some code I am using to develop a project. I have cited this repository in my project.clj file, and am now able to rely on local jars in this way (how to do this in a previous question of mine). Since I am actively developing these projects, I have my project.clj file looking for the LATEST version. But, in order to update a dependency, I still have to increment the version number of that dependency and then run lein install to build it to the

Automating Leiningen local dependency management

*爱你&永不变心* 提交于 2020-01-03 13:39:16
问题 I am using a local maven repository to house some code I am using to develop a project. I have cited this repository in my project.clj file, and am now able to rely on local jars in this way (how to do this in a previous question of mine). Since I am actively developing these projects, I have my project.clj file looking for the LATEST version. But, in order to update a dependency, I still have to increment the version number of that dependency and then run lein install to build it to the