dependencies

How do I introduce find_dependency calls into my generated foo-config.cmake file?

﹥>﹥吖頭↗ 提交于 2021-01-28 13:41:29
问题 I have a CMake project named foo . In its CMakeLists.txt , and among other commands, I have: install( EXPORT foo_export DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/foo" NAMESPACE "foo::" FILE foo-config.cmake ) (and also a write_basic_package_version_file() call later on.) Now, I want foo-config.cmake to also check for a dependency bar of foo , with find_dependency() . How do I do that, other than by replacing the .cmake file generation with something manual? Notes: I'm interested both in the

Gradle Composite Build, transitive dependency is not resolved

半世苍凉 提交于 2021-01-28 09:57:21
问题 First off, I'm sorry I have to showcase the problem in pseudocode, because the original library code is closed source and the overall build process is a little more complicated. The Problem is as follows: We have a project A, which uses an inhouse library B. This Library uses several opensource libraries, we call them C and D for now. For debugging purposes I want to create a gradle composite build of project A, which includes library B using, includeBuild . Project A: settings.gradle

Gradle Composite Build, transitive dependency is not resolved

大兔子大兔子 提交于 2021-01-28 09:56:23
问题 First off, I'm sorry I have to showcase the problem in pseudocode, because the original library code is closed source and the overall build process is a little more complicated. The Problem is as follows: We have a project A, which uses an inhouse library B. This Library uses several opensource libraries, we call them C and D for now. For debugging purposes I want to create a gradle composite build of project A, which includes library B using, includeBuild . Project A: settings.gradle

Unresolved Dependencies sbt with play framework

南楼画角 提交于 2021-01-28 09:14:32
问题 As i am new to Stack Overflow please be patient i am working on a project with Play 2.5 exactly the starter example from the Website. As i have to work with ebean i followed the Steps of Setting ebean in the plugins.sbt as like addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "3.0.0") and also in my build.sbt file name := """play-java""" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean) scalaVersion := "2.11.11" libraryDependencies +=

Angular Chart.js - Remove Moment.js as Dependency / Reduce Bundle Size

泄露秘密 提交于 2021-01-28 02:06:40
问题 I am using Chart.js with Angualar 7 . But Chart.js adds about 450KB to my bundle size. Through other resources I found out, that Moment.js is the main factor for the big size. "chart.js": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-2.7.3.tgz", "integrity": "sha512-3+7k/DbR92m6BsMUYP6M0dMsMVZpMnwkUyNSAbqolHKsbIzH2Q4LWVEHHYq7v0fmEV8whXE0DrjANulw9j2K5g==", "requires": { "chartjs-color": "^2.1.0", "moment": "^2.10.2" } }, I want to know how to remove moment

Dependency hell in VS C#, cannot find dependencies

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-28 00:49:53
问题 I created a chart C# library (let's call it chartlibrary ) which itself has dependencies on multiple third-party dll files. In another executable project (let's call it chartuser ), I reference the chartlibrary project (both projects sit within the same solution in Visual Studio). Upon compilation, I can see that all the third-party dll files that chartlibrary references are also contained in the bin/Debug folder of chartuser . However, I get a runtime error which basically points to the fact

How does Maven Choose the Version of a Transitive Dependency when Two or More Versions of that Dependency Exist in the Dependency Tree?

╄→гoц情女王★ 提交于 2021-01-27 20:07:19
问题 I've got a project that depends on a library that I maintain called microservices-common. The microservices-common library in turn depends on commons-codec:1.11 . However, when I attempt to use microservices-common in my project, commons-codec:1.10 ends up on my classpath, and my code fails to compile, because microservices-common is attempting to use a org.apache.commons.codec.digest.DigestUtils constructor that was added to commons-codec:1.11 , but isn't present in commons-codec:1.10 . Here

The import io.restassured.RestAssured cannot be resolved

筅森魡賤 提交于 2021-01-27 14:42:11
问题 Hi I am not able to resolve the error while using rest assured 4.1.1. library in my Eclipse IDE. I have added the rest assured library in my pom.xml file still the error is not resolved. I tried re-importing the rest assured library from https://mvnrepository.com/artifact/io.rest-assured/rest-assured/4.1.1 But still doesn't work <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http:/

How to make a local dependency depend on a feature in Cargo?

三世轮回 提交于 2021-01-27 11:37:43
问题 Given this small library which uses local crates in subdirectories, how would I make one of the dependencies optional, depending on if a feature is enabled? [package] name = "image_load" description = "Small wrapper for image reading API's." version = "0.1.0" [features] default = ["use_png"] [dependencies] [dependencies.image_load_ppm] path = "ppm" # How to make this build _only_ when 'use_png' feature is enabled? [dependencies.image_load_png] path = "png" While I read the documentation, this

Why gradle removes dependency when I build a project

大城市里の小女人 提交于 2021-01-24 12:23:06
问题 I have no idea why gradle is doing this to me. I have a multiproject that looks like this: |Parent |client |common |service Parent is just an empty project and client, common and service are gradle java projects: I have some classes that are used in both client and service, therefore I wanted to create a common project and build a jar that I would later use in both service and client. I can build the common jar, but whenever i try to do 'add dependency on common' and then try to 'refresh