Commit Graph

52 Commits

Author SHA1 Message Date
Eugene Vigdorchik be3ea741bc Mirror ivy \'force\' attribute in sbt. 2012-02-07 20:14:45 +04:00
Mark Harrah 5e155900da rework cross versioning to account for prerelease Scala versions 2012-01-22 22:06:53 -05:00
Indrajit Raychaudhuri 0270ac078f 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 3d82b79fc9 log during resolution 2011-11-04 13:40:59 -04:00
Indrajit Raychaudhuri bd8d1c0698 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 67102aadff - 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 0509424635 fix pom packaging autodetection 2011-07-30 18:11:20 -04:00
Mark Harrah 213399c40c fix inter-project dependencies involving extra attributes 2011-07-29 23:33:10 -04:00
Mark Harrah a8fd017499 maven-compatible plugin dependency system 2011-07-27 19:50:59 -04:00
Mark Harrah 5903fb88a2 includes sbt, Scala version extra attributes in repository/cache patterns 2011-07-23 23:07:54 -04:00
Mark Harrah bcc3e12abc 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 aebde6b3e6 move dependency mapping to IvySbt#Module 2011-07-06 07:30:47 -04:00
Mark Harrah 4921be04c8 add ChainedResolver(name: String, resolvers: Seq[Resolver]), closes #63 2011-06-20 15:25:23 -04:00
Mark Harrah 69fec711be inject internal configurations into pom ModuleDescriptor. fixes #59 2011-06-17 21:56:52 -04:00
Mark Harrah fcddde02e6 drop custom conflict manager to fix IvyNode-related exception 2011-05-29 19:17:31 -04:00
Mark Harrah 06ec88af3d build sxr, api docs and use sbinary 0.4.0 2011-05-17 20:09:20 -04:00
Mark Harrah fee9429b03 more work on dependency management tests 2011-04-16 11:22:10 -04:00
Mark Harrah de2d26d94c fix handling of custom ivy home directory 2011-04-15 20:13:39 -04:00
Mark Harrah a15bd90309 artifact and cross-naming fixes/improvements 2011-04-15 20:13:38 -04:00
Mark Harrah 4328d7d1f1 Hack to avoid Ivy checking for sources/javadocs for every module 2011-04-15 18:31:16 -04:00
Mark Harrah 3e29126cbf support checksum generation and checking, enable by default 2011-04-15 18:25:54 -04:00
Mark Harrah 5dcc1bc9bc 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 132278d1d8 Ivy home configurable instead of cache directory, work on artifact test 2011-04-13 19:03:36 -04:00
Mark Harrah 8c0d441fec clean up Ivy-related logging 2011-03-22 20:53:33 -04:00
Mark Harrah b1d39404a1 make default conflict manager ignore force
see comment on IvySbt.latestNoForce
2011-03-16 20:10:41 -04:00
Mark Harrah 4a8e79befb 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 d371ff9314 more consistent configuration of the Ivy user directory 2011-03-12 10:28:53 -05:00
Mark Harrah 8c9e89850a configure Ivy cache to ignore original resolver 2011-02-17 16:20:30 -05:00
Mark Harrah dcd24f5dc4 implement %% 2011-02-14 18:57:54 -05:00
Mark Harrah 032f638549 fix stray Ivy logging message when directly accessing IvySbt#Module 2011-02-11 20:09:42 -05:00
Mark Harrah ae7e029a46 fix deadlock caused by lazy val synchronization 2011-02-05 21:34:17 -05:00
Mark Harrah 78a8996b7f drop some NotNulls from ivy/ plus some adjustments 2010-10-26 17:59:24 -04:00
Mark Harrah 620c433498 disable check modified. need to verify it doesn't break -SNAPSHOT 2010-09-27 19:06:52 -04:00
Mark Harrah a630aed777 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 59e15f2c51 minor cleanup of some Ivy-related code 2010-09-12 23:14:30 -04:00
Mark Harrah 050f9db501 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 b2077ce60c more 2.8 updates, launcher compiles and runs with 2.8 2010-06-15 20:38:18 -04:00
Mark Harrah 33d29a4768 * 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 6a27b5e42b 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 9720566f84 detect packaging for make-pom 2010-03-30 09:19:36 -04:00
Mark Harrah 56d64c88cc Separate repositories for publishing from repositories for resolving/retrieving 2010-03-04 00:07:12 -05:00
Mark Harrah 2a86b968ea Add artifacts provided in EmptyConfiguration 2010-02-06 14:20:51 -05:00
Mark Harrah 7219a2905a Fix 'unknown resolver' errors in normal projects 2010-02-06 14:14:49 -05:00
Mark Harrah a2963744cc Fix clean-cache 2010-01-29 20:29:55 -05:00
Mark Harrah a958fa6484 Use a machine-global lock on Ivy because caches are not safe for concurrent access 2010-01-28 19:31:04 -05:00
Mark Harrah fa93a64cf9 Replace Ivy interface with the component from xsbt 2010-01-15 19:05:23 -05:00
Mark Harrah 6c132165d6 Fixes for Ivy interface component 2010-01-10 16:47:38 -05:00
Mark Harrah 1a74b7e863 Only write 'info' tag if user has not provided one. 2009-10-11 15:43:42 -04:00
Mark Harrah b2fdc07505 Turned sbt launcher into a general Scala application launcher as described in launch.specification 2009-09-27 14:39:26 -04:00
Mark Harrah 76e81409df Updates to Ivy component and getting launcher component working. 2009-09-08 23:13:30 -04:00