Commit Graph

55 Commits

Author SHA1 Message Date
Indrajit Raychaudhuri 5b3dc5bf26 Update Resolver configuration
- deprecate scala-tools resolvers
- rename `typesafeResolver` to `typesafeReleases` for consistency
- add reference for other wel known resolvers, viz., oss.sonatype.org and scalasbt.artifactoryonline.com
- rearrange locations for helper methods
2012-03-12 05:25:12 +05:30
Indrajit Raychaudhuri ea08f86520 Added support for providing basic SCM info
Sonatype OSS repo (where many libraries are expected to migrate) requires
populating SCM info in additional to what is already provisioned for
populating in SBT.

We now support populating the basic SCM info as thus:
```
// Usual <scm><url/><connection/></scm>
scmInfo := Some(ScmInfo(url("https://github.com/foo/project"), "scm:git:https://github.com/foo/project.git"))

// Also add <developerConnection/>
scmInfo := Some(ScmInfo(url("https://github.com/foo/project"), "scm:git:https://github.com/foo/project.git", Some("dev_connection")))
```
For anything more esoteric than the basic info, there is always `pomPostProcess` :)
2012-02-28 15:30:51 +05:30
Eugene Vigdorchik 45073ee7f1 test- preffix should be stripped to obtain classifier. 2012-02-21 18:52:50 +04:00
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
Mark Harrah 2255bd5a62 org.scala-tools.sbt -> org.scala-sbt and dropping scala-tools.org from defaults 2012-01-22 22:06:52 -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
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 7f9adf31b8 Add start-year for compliance in ProjectInfo 2011-09-03 02:19:08 +05:30
Mark Harrah fcdcdb4eaa more on #155 2011-08-23 19:51:50 -04:00
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
Indrajit Raychaudhuri 5e002782f1 Add java.net M2 repo for convenience 2011-07-31 20:47:10 +05:30
Mark Harrah 0509424635 fix pom packaging autodetection 2011-07-30 18:11:20 -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 e81d7087ed includes extra attributes in ModuleID.toString 2011-07-23 23:07:54 -04:00
Mark Harrah 3f0644d136 use launcher repositories for update-sbt-classifiers. fixes #88 2011-07-19 21:29:05 -04:00
Mark Harrah 8d61d78c2b return Provided to be transitive, ref #42 2011-07-03 15:44:53 -04:00
Mark Harrah 5d0cdc8de4 use ivyConfigurations for interDependencies instead of scope configurations 2011-06-22 19:17:10 -04:00
Mark Harrah 4921be04c8 add ChainedResolver(name: String, resolvers: Seq[Resolver]), closes #63 2011-06-20 15:25:23 -04:00
Mark Harrah a028f8e6d7 fixes issue with inter-project resolution when project delegates are defined 2011-06-18 20:17:50 -04:00
Mark Harrah 540f7df9e1 cleaning up artifact configurations 2011-06-14 19:32:36 -04:00
Mark Harrah 9f5d219310 Define 'type' for builtin artifacts based on classifier 2011-06-12 21:32:52 -04:00
Mark Harrah b97eb58396 define type for artifacts looked up by update-classifiers, fixes #49 2011-06-11 20:09:15 -04:00
Mark Harrah c501635240 make provided intransitive, fixes #42 2011-06-10 08:08:51 -04:00
Mark Harrah 9b984d07c3 use artifact patterns as ivy pattern defaults 2011-06-02 18:35:25 -04:00
Mark Harrah 60eda4bb20 Implement optional/provided configurations, closes #8 2011-04-19 22:24:52 -04:00
Mark Harrah a15bd90309 artifact and cross-naming fixes/improvements 2011-04-15 20:13:38 -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 159a3fe8f3 credentials and patterns for resolvers 2011-04-05 18:44:47 -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 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 8e2588ec10 Configuration-related tweaks 2011-02-02 19:32:24 -05:00
Mark Harrah 087bc569e0 multi-project model based on Settings and ProjectRef 2011-01-18 18:48:32 -05:00
Mark Harrah 54ba5d75be work on products+configurations 2010-11-13 20:21:06 -05:00
Mark Harrah 78a8996b7f drop some NotNulls from ivy/ plus some adjustments 2010-10-26 17:59:24 -04:00
Mark Harrah b16b0adc0f add sbt package object
for use from project definitions only-
 it is a top-level project
add dependency and repository builders
 cross-versioning will be a post-construction transformation
2010-09-21 22:24:24 -04:00
Mark Harrah 26265e549e add RawRepository to wrap raw Ivy Resolvers 2010-09-12 23:13:48 -04:00
Mark Harrah d0fa1eb461 * move Environment classes to util/env module
* move TrapExit, SelectMainClass to run module
* rearrange some compilation-related code
* Jetty-related code moved to web module
2010-07-14 19:24:50 -04:00
Mark Harrah 4d312a01fa support ssh/sftp with keyfiles (needed to add user name parameter to 'as') 2010-04-28 20:45:35 -04:00
Mark Harrah afdd34dc4d * synchronize types for doc/src artifacts with the wiki documentation
* Artifact.{sources, javadoc} methods for defining additional artifacts
2010-04-27 17:58:05 -04:00
Mark Harrah bd038a423b add checks to Artifact.extra 2010-04-23 18:50:47 -04:00
Mark Harrah a33223a02c legal cleanup 2010-02-07 23:45:19 -05:00
Mark Harrah 3ed1bdda22 document some methods on Resolver 2010-02-06 19:23:06 -05:00
Mark Harrah 3b67efa0d4 Use custom pom generation instead of Ivy's built-in generation in order to support extra information like licenses. 2010-01-29 20:31:07 -05:00
Mark Harrah fa93a64cf9 Replace Ivy interface with the component from xsbt 2010-01-15 19:05:23 -05:00
Mark Harrah 67f8fc5c06 compile fixes 2010-01-10 21:06:00 -05:00
Mark Harrah 6c132165d6 Fixes for Ivy interface component 2010-01-10 16:47:38 -05:00
Mark Harrah 08817dff69 Include latest updates from sbt Ivy support 2009-10-01 22:56:23 -04:00