Commit Graph

57 Commits

Author SHA1 Message Date
Mark Harrah c111fc1ae2 configuration via ivysettings.xml: use URI instead of URL and make 'inter-project' resolver available for multi-project builds. ref #416 2012-04-11 22:40:45 -04:00
Michael Allman 38289ad08a Add support for loading Ivy settings from a URL 2012-04-08 20:22:15 -07:00
Mark Harrah ec955474c4 Declare extra namespace in ModuleDescriptor for parsed plugin poms. Fixes #368. 2012-02-27 18:38:04 -05:00
Mark Harrah c74b03513f work around 'data has not been loaded' exception when direct dependency overridden by newer version 2012-02-14 21:59:13 -05:00
Mark Harrah 1b168c37e4 support for dependency overrides 2012-02-14 21:59:12 -05:00
Eugene Vigdorchik 851864f9f6 Mirror ivy \'force\' attribute in sbt. 2012-02-07 20:14:45 +04:00
Mark Harrah 80589d1f5b rework cross versioning to account for prerelease Scala versions 2012-01-22 22:06:53 -05:00
Indrajit Raychaudhuri c597ec1e5e Support for enhanced cross build suffix in dependencies. Closes #267
Overloading `%%` for library dependency to allow using a library built
with an alternative version of Scala that is different from the Scala
version used in the current build (but hopefully binary compatible).

This is useful in cases, where the binary build of a dependency with
the exact Scala version isn't yet available but an otherwise binary
compatible build (maybe with a previous Scala release) is available.
2011-11-17 22:17:06 +05:30
Mark Harrah f478b0b907 log during resolution 2011-11-04 13:40:59 -04:00
Indrajit Raychaudhuri a6396f839b Support for simple exclusion rules in inline dependencies
This support excluding a library from the dependency tree for a given
set of `ExclusionRule`s. There are two ways to achieve this:

- Using `organization` and `name` pairs:
val dep = "org" % "name" % "version" exclude("commons-codec", "commons-codec") exclude("org.slf4j", "slf4j-log4j")

- Using `ExclusionRule`:
val dep = "org" % "name" % "version" excludeAll(ExclusionRule("commons-codec", "commons-codec"), ExclusionRule("org.slf4j", "slf4j-log4j"))
2011-09-10 04:32:47 +05:30
Indrajit Raychaudhuri 479c088772 - Extra Settings are now available to control project information, viz., name, description, homepage, organization name, organization homepage, licenses
- Modified name/signature of some private types/methods to reduce confusion (all in limited scope, so nothing should change from end user's pov)
- Enriched Ivy and Maven descriptors produced out of the box (see Keys.scala and Defaults.scala for more)
- Projects do not need to create custom Ivy <info/> block anymore, there is more settings-specific control instead
2011-08-03 08:49:46 +05:30
Mark Harrah d7a5dca812 fix pom packaging autodetection 2011-07-30 18:11:20 -04:00
Mark Harrah 73d52dc031 fix inter-project dependencies involving extra attributes 2011-07-29 23:33:10 -04:00
Mark Harrah 392754e165 maven-compatible plugin dependency system 2011-07-27 19:50:59 -04:00
Mark Harrah efe920fff0 includes sbt, Scala version extra attributes in repository/cache patterns 2011-07-23 23:07:54 -04:00
Mark Harrah c766412885 use 'scalaVersion in update' for cross building, IvyScala.substituteCross for generality. fixes #86
also, 'scalaVersion in artifactName` for the version to append to artifacts
2011-07-17 11:26:27 -04:00
Mark Harrah 3c37eaa161 move dependency mapping to IvySbt#Module 2011-07-06 07:30:47 -04:00
Mark Harrah dcd84a48ab add ChainedResolver(name: String, resolvers: Seq[Resolver]), closes #63 2011-06-20 15:25:23 -04:00
Mark Harrah dbd7a3eacb inject internal configurations into pom ModuleDescriptor. fixes #59 2011-06-17 21:56:52 -04:00
Mark Harrah 5f7a6a192a drop custom conflict manager to fix IvyNode-related exception 2011-05-29 19:17:31 -04:00
Mark Harrah b470d8ad80 build sxr, api docs and use sbinary 0.4.0 2011-05-17 20:09:20 -04:00
Mark Harrah 367ada5aca more work on dependency management tests 2011-04-16 11:22:10 -04:00
Mark Harrah 0ad9d58c8a fix handling of custom ivy home directory 2011-04-15 20:13:39 -04:00
Mark Harrah 8d797e7951 artifact and cross-naming fixes/improvements 2011-04-15 20:13:38 -04:00
Mark Harrah 9b64b75c2f Hack to avoid Ivy checking for sources/javadocs for every module 2011-04-15 18:31:16 -04:00
Mark Harrah cb02e3c852 support checksum generation and checking, enable by default 2011-04-15 18:25:54 -04:00
Mark Harrah 40e1904615 direct Artifact->File map, removing source patterns
build and publish main sources and docs by default
control built-in artifacts with 'publish-artifact'
// disable publishing docs
 publishArtifact in (Compile,packageDoc) := false
// enable publishing test jar, docs, and sources
 publishArtifact in Test := true
2011-04-14 07:32:42 -04:00
Mark Harrah e73a49c467 Ivy home configurable instead of cache directory, work on artifact test 2011-04-13 19:03:36 -04:00
Mark Harrah f10012df87 clean up Ivy-related logging 2011-03-22 20:53:33 -04:00
Mark Harrah 7046b84954 make default conflict manager ignore force
see comment on IvySbt.latestNoForce
2011-03-16 20:10:41 -04:00
Mark Harrah 4e55503d64 retrieve to build, update-classifiers action
set retrieve := true to have dependencies retrieved to the build
the location is by default shared by all projects in a build
  (<built-root>/lib_managed/), but can be per-project
update-classifiers and update-sbt-classifiers retrieves artifacts with classifiers
  for project dependencies and for sbt, respectively
The default setting is classifiers := Seq("javadoc", "sources")
2011-03-15 22:12:59 -04:00
Mark Harrah c0f3677844 more consistent configuration of the Ivy user directory 2011-03-12 10:28:53 -05:00
Mark Harrah 7ad8785fc4 configure Ivy cache to ignore original resolver 2011-02-17 16:20:30 -05:00
Mark Harrah 75bfabb381 implement %% 2011-02-14 18:57:54 -05:00
Mark Harrah 2e7eaac15b fix stray Ivy logging message when directly accessing IvySbt#Module 2011-02-11 20:09:42 -05:00
Mark Harrah 191c19dc2b fix deadlock caused by lazy val synchronization 2011-02-05 21:34:17 -05:00
Mark Harrah 9090cd6218 drop some NotNulls from ivy/ plus some adjustments 2010-10-26 17:59:24 -04:00
Mark Harrah 46f51b6e10 disable check modified. need to verify it doesn't break -SNAPSHOT 2010-09-27 19:06:52 -04:00
Mark Harrah 2838619011 update to Scala 2.8.1.RC1, Ivy 2.2.0-rc1
use dependencies compiled against Scala 2.8.0
2010-09-21 22:09:08 -04:00
Mark Harrah 42d4323d2b minor cleanup of some Ivy-related code 2010-09-12 23:14:30 -04:00
Mark Harrah 3d0d640a9c rework ConsoleLogger
can send output to a PrintWriter
control over color, still need custom formatter
replace IvyLogger with normal Logger
2010-09-04 08:24:26 -04:00
Mark Harrah f56c0ac37f more 2.8 updates, launcher compiles and runs with 2.8 2010-06-15 20:38:18 -04:00
Mark Harrah 3d7051ad07 * can now set 'offline' property to 'true' to not refresh dynamic revisions (not needed if no -SNAPSHOT versions used)
* more control over Ivy logging: override ivyUpdateLogging = UpdateLogging.Full,DownloadOnly (default), or Quiet
2010-05-02 19:15:01 -04:00
Mark Harrah 291e2dc17e Provide empty <publications/> for inline Ivy XML if a publications tag does not exist.
This prevents a default artifact from being added incorrectly.
2010-04-01 20:14:05 -04:00
Mark Harrah f6e8adfff5 detect packaging for make-pom 2010-03-30 09:19:36 -04:00
Mark Harrah a8bc831189 Separate repositories for publishing from repositories for resolving/retrieving 2010-03-04 00:07:12 -05:00
Mark Harrah 5c37531d23 Add artifacts provided in EmptyConfiguration 2010-02-06 14:20:51 -05:00
Mark Harrah aeb51e1d6c Fix 'unknown resolver' errors in normal projects 2010-02-06 14:14:49 -05:00
Mark Harrah 463f765274 Fix clean-cache 2010-01-29 20:29:55 -05:00
Mark Harrah 04346217e8 Use a machine-global lock on Ivy because caches are not safe for concurrent access 2010-01-28 19:31:04 -05:00