dependencies

How to handle multiple major versions of dependency

余生长醉 提交于 2021-02-08 08:15:24
问题 I'm wondering how to handle multiple major versions of a dependency library. I have an open source library, Foo , at an early release stage. The library is a wrapper around another open source library, Bar . Bar has just launched a new major version. Foo currently only supports the previous version. As I'm guessing that a lot of people will be very slow to convert from the previous major version of Bar to the new major version, I'm reluctant to switch to the new version myself. How is this

Upgrading Gradle 5.3.1 to 6.5. Older version downloaded dependency OK, but fails on 6.5

天大地大妈咪最大 提交于 2021-02-08 05:56:06
问题 I have whittled down my problem to a very simple project that declares a module dependency on a module artifact served from my client's artifactory instance. This is working fine with 5.3.1. As can be seen from the logs below there is a line which indicates DefaultExternalResourceArtifactResolver is loading the associated .jar for this dependency from my maven2 repo (see: {{{ A }}}) However, when I attempted to upgrade to Gradle 6.5, I get the message org.gradle.api.internal.artifacts

How to use path type local repository with Composer

时光毁灭记忆、已成空白 提交于 2021-02-08 05:23:20
问题 I am relatively new to Composer and have been looking for an example of using a local repository using the path repo type. I've found several articles (e.g. this one and this one on the topic, but when I try the examples I end up getting an error like: The requested package myvendor/mylibrary could not be found in any version, there may be a typo in the package name. So I thought I'd create a super-simple example of what I'm trying in hopes that someone can point me in the right direction. My

Is it possible to check which gradle dependencies contains given class?

佐手、 提交于 2021-02-07 12:03:31
问题 Recently we had a version mismatch problem with a class org.apache.commons.beanutils.PropertyUtilsBean . We thought that mismatch is just between some dependency that brings commons-beanutils in versions 1.8 and 1.9.3 but after tracking and excluding each transitive dependency we were still facing an issue. It turns out that the the PropertyUtilsBean was also packed inside the commons-digester3-3.2-with-deps instead declared as dependency to commons-beanutils . Is it possible in gradle to

Local AAR file doesn't manage dependencies

梦想与她 提交于 2021-02-07 07:01:46
问题 I have worked on an Android library (an API client) that uses Retrofit and Joda DateTime. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'joda-time:joda-time:2.8.1' } Now that the library is completed I compiled it into an AAR file and I want to use it in an application, so I added it to the libs folder of the application and included it in the build.gradle file like so :

Local AAR file doesn't manage dependencies

蓝咒 提交于 2021-02-07 07:01:07
问题 I have worked on an Android library (an API client) that uses Retrofit and Joda DateTime. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'joda-time:joda-time:2.8.1' } Now that the library is completed I compiled it into an AAR file and I want to use it in an application, so I added it to the libs folder of the application and included it in the build.gradle file like so :

How to use the Processing core library with Maven?

早过忘川 提交于 2021-02-07 05:21:11
问题 I want to use Processing libs in my Maven project, but I can't find any artifact for dependency. Where can I get it? 回答1: Edit Since Processing 3, the official artifacts are released to maven central. Use like this (latest version as of February 2019): <dependency> <groupId>org.processing</groupId> <artifactId>core</artifactId> <version>3.3.7</version> </dependency> For old releases You can use the stable processing libraries from clojars.org/quil/processing-core. To use Clojars repository in

Xcode 11.4 compile error 'Missing package product <package name>'

谁都会走 提交于 2021-02-07 04:43:06
问题 When I integrate a local package in my Xcode project everything is fine initially but when i switch branches and want to run the app Xcode gives me the compile error Missing package product <package name> . When I quit Xcode and re-open it everything is fine again. Any idea what this can be? An Xcode bug? We also integrate external packages via Swift Package Manager which works perfectly fine. No issues there. The issue is also well described in a post by Jesse Squires. 回答1: For me, I needed

Using mock objects outside of testing, bad practice?

瘦欲@ 提交于 2021-02-07 03:40:28
问题 I'm working on a project where there is a lot of external service messaging. A good way to describe it in only a slightly "hyperbolas" way would be an application where the system has to send messages to the Flicker API, the Facebook API, and the Netflix API. To support disconnected scenarios, logging concerns, developer usability, configuration, etc... I've experimented using an approach which heavily uses generics and expression trees. The end result looks like this: Messenger<NetflixApi>

Using mock objects outside of testing, bad practice?

青春壹個敷衍的年華 提交于 2021-02-07 03:38:16
问题 I'm working on a project where there is a lot of external service messaging. A good way to describe it in only a slightly "hyperbolas" way would be an application where the system has to send messages to the Flicker API, the Facebook API, and the Netflix API. To support disconnected scenarios, logging concerns, developer usability, configuration, etc... I've experimented using an approach which heavily uses generics and expression trees. The end result looks like this: Messenger<NetflixApi>