ivy

ivy:retrieve select which ivy.xml file to use

和自甴很熟 提交于 2020-01-15 05:23:08
问题 Is there a way to select which ivy.xml file to use when I invoke ivy:retrieve ? Looking at the documentation it appears that I can use the settingsRef property to select which IVY settings file to use but it's not the ivysettings.xml file I wish to modify, rather it's ivy.xml . My use case is the following: I have a main ivy.xml file that I use to fetch my compile-time and run-time dependencies I also have a number of build tool-chain dependencies, i.e. jars used by certain Ant tasks

TypeScript Failed to compile because Type declaration of 'any' loses type-safety

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 18:47:10
问题 How should I address the error message: Failed to compile /.../SoftwareLicenseCodes/index.tsx (14,20): Type declaration of 'any' loses type-safety. Consider replacing it with a more precise type. This error occurred during the build time and cannot be dismissed. See the following code: import * as React from 'react'; import './SoftwareLicenseCodes.css'; interface SoftwareLicenseCodesProps { } interface SoftwareLicenseCodesState { count: string; oneTimeUsage: boolean; duration: string;

Is there a way to configure Ivy to get dependencies from a branch without editing every dependency concerned?

[亡魂溺海] 提交于 2020-01-13 18:00:30
问题 I have a number of projects here that have dependencies between each other as well as to external libraries. Dependency management is done with ivy and our own repository. We recently had to branch because there is one version of the projects that is in QA and another one where current development is done. The problem is that I can't find a way to use ivy in the new branch without adding the branch attribute to every internal dependency. I thought about adding the branch attribute to the

How to use ivy to build a war with out copying jars to a lib directory

强颜欢笑 提交于 2020-01-11 19:50:07
问题 My goal is have my ant build script build a war file and include the jars that ivy knows this project depends on. The best code I could come up with at the moment is the following <mkdir dir="dist/lib"/> <ivy:retrieve pattern="dist/lib/[artifact].[ext]" sync="true"/> <war destfile="dist/${ivy.module}.war" basedir="build" includes="**/*.class" webxml="${war.webxml}"> <fileset dir="${war.web}"/> <lib dir="dist/lib"/> </war> The problem with this code is it copies the jars twice. Once in to my

How to use ivy to build a war with out copying jars to a lib directory

扶醉桌前 提交于 2020-01-11 19:50:06
问题 My goal is have my ant build script build a war file and include the jars that ivy knows this project depends on. The best code I could come up with at the moment is the following <mkdir dir="dist/lib"/> <ivy:retrieve pattern="dist/lib/[artifact].[ext]" sync="true"/> <war destfile="dist/${ivy.module}.war" basedir="build" includes="**/*.class" webxml="${war.webxml}"> <fileset dir="${war.web}"/> <lib dir="dist/lib"/> </war> The problem with this code is it copies the jars twice. Once in to my

<ivy:cachepath> is SLOW, how to avoid doing it every build and improve ivy cachepath performance?

安稳与你 提交于 2020-01-11 14:10:31
问题 Compile times are slowed by 4s resolving dependant libs for my javac step every build on this line: <target name="compile" depends="bootstrap"> <ivy:cachepath pathid="classpath"/> <!-- SLOW --> I want to essentially CACHE the results of ivy:cachepath so I don't have to do it every build. I want ${classpath} to exist in less than 0.2 seconds Context: This is a vanilla ant build.xml which bootstraps ivy, uses an ivy.xml file that lists standard maven dependencies, then calls javac with those

<ivy:cachepath> is SLOW, how to avoid doing it every build and improve ivy cachepath performance?

跟風遠走 提交于 2020-01-11 14:10:09
问题 Compile times are slowed by 4s resolving dependant libs for my javac step every build on this line: <target name="compile" depends="bootstrap"> <ivy:cachepath pathid="classpath"/> <!-- SLOW --> I want to essentially CACHE the results of ivy:cachepath so I don't have to do it every build. I want ${classpath} to exist in less than 0.2 seconds Context: This is a vanilla ant build.xml which bootstraps ivy, uses an ivy.xml file that lists standard maven dependencies, then calls javac with those

Ivy dependency management for legacy repository

最后都变了- 提交于 2020-01-11 06:11:03
问题 We have a repository which doesn't have ivy.xml and other metadata files. Since, its published by another team which doesn't use ivy/maven but will continue to deliver code frequently. The jars needed for dependency are stored in flat structure inside a single directory with no revision data. The organization / module /revision structure is absent. Does ivy allow such dependency resolutions in the core product or will I have to write a custom resolver? Thanks 回答1: The standard resolvers

Ivy dependency management for legacy repository

北慕城南 提交于 2020-01-11 06:09:08
问题 We have a repository which doesn't have ivy.xml and other metadata files. Since, its published by another team which doesn't use ivy/maven but will continue to deliver code frequently. The jars needed for dependency are stored in flat structure inside a single directory with no revision data. The organization / module /revision structure is absent. Does ivy allow such dependency resolutions in the core product or will I have to write a custom resolver? Thanks 回答1: The standard resolvers

Ivy dependency management for legacy repository

这一生的挚爱 提交于 2020-01-11 06:09:07
问题 We have a repository which doesn't have ivy.xml and other metadata files. Since, its published by another team which doesn't use ivy/maven but will continue to deliver code frequently. The jars needed for dependency are stored in flat structure inside a single directory with no revision data. The organization / module /revision structure is absent. Does ivy allow such dependency resolutions in the core product or will I have to write a custom resolver? Thanks 回答1: The standard resolvers