Commit Graph

496 Commits

Author SHA1 Message Date
Mark Harrah b867d2e398 add method noTestCompletion() for disabling test name completion. ref #66 2011-06-23 20:37:56 -04:00
Mark Harrah c919a9c3fd cache calls to definesClass within a run. closes #67 2011-06-22 19:17:10 -04:00
Mark Harrah 738e32b9c6 add extraLoggers to make it easier to add loggers 2011-06-22 19:17:10 -04:00
Mark Harrah 5d0cdc8de4 use ivyConfigurations for interDependencies instead of scope configurations 2011-06-22 19:17:10 -04:00
Mark Harrah d0e072aa14 fix dependsOn not propagating failures in dependencies 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 c4ac9445e3 cache failing classifiers. fixes #46 2011-06-19 21:01:29 -04:00
Mark Harrah 4c770e8f27 annotate return type Seq[Setting[_]] for several methods in Defaults
works around issue with scalac:
[error] class file needed by Defaults is missing.
[error] reference type _$34 of (t: <?>)(ss: <?>)Seq[sbt.Project.Setting[_]] refers to nonexisting symbol.
2011-06-18 21:02:15 -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 b8ba743e87 fix description of unmanagedBase 2011-06-18 14:55:32 -04:00
Mark Harrah 50fd30a695 ProjectDefinition.toString 2011-06-15 19:09:31 -04:00
Mark Harrah 1248830e2c fix 'inspect' not showing setting value 2011-06-15 19:08:49 -04:00
Mark Harrah 0fa5b85736 fix ProjectDefinition.equals not considering base directory, ref #54 2011-06-15 19:08:49 -04:00
Mark Harrah 09c05dea97 fix issue of duplicate fullClasspath entries from products and dependencyClasspath 2011-06-14 19:32:36 -04:00
Mark Harrah 62c580024d inter-project provided dependencies, closes #53 2011-06-14 19:32:36 -04:00
Mark Harrah 540f7df9e1 cleaning up artifact configurations 2011-06-14 19:32:36 -04:00
Mark Harrah 25edfc5eeb drop Incomplete task message, fixes #32 2011-06-14 19:31:55 -04:00
Mark Harrah 3c775416b4 make settings parameter for ProjectDef call-by-name 2011-06-14 19:31:54 -04:00
Mark Harrah 8e4192b144 show type in output of 'inspect' 2011-06-14 19:31:54 -04:00
Mark Harrah 9f5d219310 Define 'type' for builtin artifacts based on classifier 2011-06-12 21:32:52 -04:00
Mark Harrah cadee45e8f drop crossVersion after substitution for sbt dependency to avoid double cross-suffix, fixes #51 2011-06-12 21:32:52 -04:00
Mark Harrah 63857ddd16 add pomAllRepositories option to include module configuration resolvers in pom. closes #39 2011-06-12 21:32:51 -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 be1bdbb350 use current project's logLevel for command logging 2011-06-10 23:40:25 -04:00
Mark Harrah 36d2394208 implements #41 2011-06-10 08:08:52 -04:00
Mark Harrah d64cd8e34d fixes #45 2011-06-10 08:08:52 -04:00
Mark Harrah 208cf12045 honor formatEnabled setting, fixes #48 2011-06-10 08:08:51 -04:00
Mark Harrah 6c5203f160 allow ~/.sbt/plugins/ to be built directly 2011-06-02 18:35:25 -04:00
Mark Harrah 3de6a0735f fix packaging 2011-06-01 02:19:46 -04:00
Mark Harrah c0a21c1524 implement shortcut for API equality checking, fixes #18 2011-06-01 02:19:46 -04:00
Mark Harrah d54a992c23 small change to compiling message 2011-05-31 18:37:07 -04:00
Mark Harrah 7733c57934 fix test-only behavior with no arguments 2011-05-31 18:37:07 -04:00
Mark Harrah 4945190eca rearrange products settings
1. enables exporting jar to classpath instead of class directory
2. starts to make post-processing class files easier
2011-05-31 18:37:07 -04:00
Mark Harrah e5443141b1 error handling adjustments, including showing failing task in red (for #29) 2011-05-30 22:10:01 -04:00
Mark Harrah 2432642571 Adjust ivyScala to not use build-level scalaVersion. fixes #28 2011-05-30 22:10:01 -04:00
Mark Harrah 1169e7790d fix test-only filtering 2011-05-30 17:49:39 -04:00
Mark Harrah 437a3f7f50 clean up incremental debugging messages 2011-05-29 19:17:31 -04:00
Mark Harrah a94247d1b6 more release-worthy compile message and analysis toString 2011-05-29 19:17:31 -04:00
Mark Harrah 7d08bfe3ca add specs2 to list of known test frameworks 2011-05-29 19:17:31 -04:00
Mark Harrah f7d2ff713b fix key search order 2011-05-29 19:17:31 -04:00
Mark Harrah fb60ba1e11 help: alignment and add tasks 2011-05-28 17:02:16 -04:00
Mark Harrah d81273a0c6 fix issue with spaces on blank lines in build.sbt 2011-05-28 17:02:16 -04:00
Mark Harrah 04280a89a4 discover projects reflectively, provide access to build root 2011-05-26 22:13:58 -04:00
Mark Harrah 8c659328e9 back A.Key with Manifest, dropping object equality. fixes #27
type inference restoration pending switch to 2.9.0
2011-05-26 08:21:33 -04:00
Mark Harrah 9a914bea4b minor improvements to running tasks from console-project 2011-05-25 22:44:22 -04:00
Mark Harrah 85a55c25bf settle scala-library situation 2011-05-25 22:44:22 -04:00
Mark Harrah 46f1e9b4a7 put testOptions and testListeners in Global for more flexibility 2011-05-25 00:02:43 -04:00
Mark Harrah 50294c1519 support wildcards in test-only 2011-05-24 23:54:49 -04:00
Mark Harrah e048c6d07e fully configurable run task easier to create 2011-05-23 21:43:26 -04:00
Mark Harrah 41667f9f49 test fix 2011-05-23 18:40:03 -04:00
Mark Harrah 17f243bf9c make a few settings easier to override globally 2011-05-23 08:14:39 -04:00
Mark Harrah 6ae6a4b9ad or combinator for common optional setting handling case 2011-05-23 08:14:10 -04:00
Mark Harrah c5a312cedc task axis delegation 2011-05-23 08:13:13 -04:00
Mark Harrah b4597eb931 sbtVersion convenience setting 2011-05-21 13:51:13 -04:00
Mark Harrah 9439a737b8 make parallel execution configurable, fixes #22 2011-05-21 13:51:13 -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 523553b9ca proper test-interface compatibility 2011-05-17 17:47:48 -04:00
Mark Harrah b4c29b20a1 fix multi-project cross building 2011-05-16 23:18:48 -04:00
Mark Harrah 49e4b11e23 fix managed resource directory location 2011-05-16 22:56:07 -04:00
Mark Harrah 69ed08eb4a fix scope of crossScalaVersions 2011-05-16 22:56:07 -04:00
Mark Harrah c427c3e503 use shorter name for repository 2011-05-16 22:56:07 -04:00
Mark Harrah 903690ce8c don't handle threads/trap exit for user 'runTask' by default 2011-05-15 21:01:03 -04:00
Mark Harrah b9608651c4 properly handle Scala library references in fix for #16 2011-05-14 20:16:57 -04:00
Mark Harrah 1f0101cd6b fix #16 2011-05-14 20:01:30 -04:00
Mark Harrah c81a2f9d3c insert externalResolvers between resolvers and fullResolvers 2011-05-14 18:21:41 -04:00
Mark Harrah 3464228deb fix console-project class loader 2011-05-14 18:21:41 -04:00
Mark Harrah 5c48ea2433 show stack traces for console* by default 2011-05-14 18:21:41 -04:00
Mark Harrah 2343a55bb9 replace Path with RichFile 2011-05-14 18:21:41 -04:00
Mark Harrah ca405e9783 run task convenience constructors, (re)source generator hooks 2011-05-12 22:33:45 -04:00
Mark Harrah 7837e1a37b variants of += and ++= that accepting Initialize[S] 2011-05-12 22:33:45 -04:00
Mark Harrah 19ed648de5 tests and fixes for delegation 2011-05-09 20:57:10 -04:00
Mark Harrah 6bf9d9655b distinct builds in delegates 2011-05-07 22:02:06 -04:00
Mark Harrah 6bd500bbe2 scope defaultExcludes uses by the referencing task 2011-05-07 22:02:06 -04:00
Mark Harrah c8fe1a3c1d buffered, separate loggers for each test 2011-05-07 22:02:06 -04:00
Mark Harrah e653517c8d compact incomplete task error message 2011-05-07 22:02:06 -04:00
Mark Harrah 77be505093 support extra axis for streams 2011-05-07 22:02:06 -04:00
Mark Harrah 5d47aca7e8 Use fragment part of URI for specifying branch/tag for external build references 2011-05-07 22:02:06 -04:00
Mark Harrah 9dc9ccd0d3 Use standard {build}/id syntax for 'project' command 2011-05-07 22:02:06 -04:00
Mark Harrah 40c6ca3b3d Pluggable build resolvers 2011-05-07 22:02:06 -04:00
Mark Harrah 0ad682f2c1 basic optional input support 2011-05-07 22:02:06 -04:00
Mark Harrah 97fcbb6aaf filter task axis for tab completion 2011-05-07 22:02:05 -04:00
Mark Harrah 5e9b080fc8 fix artifact name to be normalized 2011-05-07 22:02:05 -04:00
Mark Harrah 7ad8e9778f fix mixed compilation order 2011-05-07 22:02:05 -04:00
Mark Harrah babf642dfc speed up startup 2011-05-02 20:43:19 -04:00
Mark Harrah 5e9cc7ea5c Add runtime classpaths 2011-05-02 20:41:47 -04:00
Mark Harrah ef20db1aa9 clear scala-home during cross-building 2011-05-02 19:37:04 -04:00
Mark Harrah 6c6eccea4f trying out different costs for edit distance 2011-04-26 22:29:30 -04:00
Mark Harrah 515386d973 load/unload hooks 2011-04-26 21:19:56 -04:00
Mark Harrah 08c9d37053 Managed/unmanaged sources/resources, fixes triggered execution 2011-04-26 21:07:53 -04:00
Mark Harrah 1c86e5781a Handle exceptions thrown during triggered execution polling 2011-04-26 21:06:54 -04:00
Mark Harrah f8bcf910c2 show slash with project IDs instead of as a separate token 2011-04-26 21:02:31 -04:00
Mark Harrah daa58adc85 work on parser error handling 2011-04-25 20:20:05 -04:00
Mark Harrah 8836b83ba3 support earlier launchers 2011-04-23 16:01:42 -04:00
Mark Harrah c432331ec0 sbt-based repl access with command line dependency declarations
based on the ideas of n8han, softprops, paulp
2011-04-23 15:26:44 -04:00
Mark Harrah 30e454af0a tab complete main classes, trigger auto-detection tasks on compilation 2011-04-23 13:17:21 -04:00
Mark Harrah f24af2a05b support for task hooks: triggeredBy and runBefore 2011-04-23 11:49:58 -04:00
Mark Harrah 324c832dee easier task data storage 2011-04-22 20:13:24 -04:00
Mark Harrah 41f1f849ec default to flat mappings for resources/packaging 2011-04-21 21:39:18 -04:00
Mark Harrah a601e8ea09 individual settings for make-pom-configuration 2011-04-21 21:39:18 -04:00
Mark Harrah 8f639ffc4d convenience methods for working in console-project 2011-04-20 23:33:53 -04:00
Mark Harrah 815ed50dcf task/setting/attribute descriptions 2011-04-20 20:18:58 -04:00
Mark Harrah 9e044d042d include managed directory in clean 2011-04-20 18:31:51 -04:00
Mark Harrah defd1ee0d4 Cache doc task 2011-04-20 18:31:10 -04:00
Mark Harrah 60eda4bb20 Implement optional/provided configurations, closes #8 2011-04-19 22:24:52 -04:00
Mark Harrah 02421e46f5 fix doubled cache when boot Ivy directory configured 2011-04-19 22:21:59 -04:00
Mark Harrah 0608e648a5 use left, some, right to avoid extra anonymous classes 2011-04-19 17:58:05 -04:00
Mark Harrah 6abab8e4b3 fix tab completion issue with test-only 2011-04-19 17:56:12 -04:00
Mark Harrah dc6584ff68 scripts: change base directory 2011-04-18 18:26:57 -04:00
Mark Harrah b56701f37e disable overrideScalaVersion when scalaHome is set 2011-04-16 20:18:16 -04:00
Mark Harrah f3d18f051f delegates cleanup 2011-04-16 20:05:15 -04:00
Mark Harrah 5806dbaab0 work on dependency management tests 2011-04-16 16:38:47 -04:00
Mark Harrah 7acfad0234 external* methods to use ivysettings.xml, ivy.xml, or pom.xml 2011-04-16 13:16:54 -04:00
Mark Harrah b75605c701 expand out to Apply9 2011-04-16 12:36:54 -04:00
Mark Harrah 818382766e add Types.idFun to replace Predef.identity, replace a :== overload
idFun[T]: T => T instead of identity[T](t: T): T
  doesn't require a new class file when used as a function value
replaced overloads of :== that assigned the Scoped reference on
  the right to the Scoped on the left with <<= scoped.identity
2011-04-16 11:24:58 -04:00
Mark Harrah fee9429b03 more work on dependency management tests 2011-04-16 11:22:10 -04:00
Mark Harrah a15bd90309 artifact and cross-naming fixes/improvements 2011-04-15 20:13:38 -04:00
Mark Harrah 0b4d0e1062 inject sbt-managed Scala libraries into the UpdateReport 2011-04-15 18:32:20 -04:00
Mark Harrah 3e29126cbf support checksum generation and checking, enable by default 2011-04-15 18:25:54 -04:00
Mark Harrah 7fb97c6353 fix Scala version transitively (by default) 2011-04-14 21:48:12 -04:00
Mark Harrah 6699539278 push artifact-classifier higher up in scope 2011-04-14 07:45:43 -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 d1af51da72 support explicitly defining sequences of settings in .sbt files 2011-04-13 19:09:33 -04:00
Mark Harrah f55414355e improve error messages for cycles 2011-04-13 19:06:36 -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 1c400db4d9 harden clean and IO.move 2011-04-12 23:10:36 -04:00
Mark Harrah fe75bade98 continuations test for compiler plugin support 2011-04-12 22:58:32 -04:00
Mark Harrah ed27a8077d clean up scope delegation implementation 2011-04-12 20:58:59 -04:00
Mark Harrah 4d635e449f split out cross target directory, preserve history during clean, fix credentials 2011-04-12 20:58:40 -04:00
Mark Harrah 43f0212092 cleanup logging paths, allow logger to be customized 2011-04-12 20:33:29 -04:00
Mark Harrah ada8e42ef5 minor improvements to .sbt file format
allow standalone blocks of // style comments
and allow comments to precede imports
2011-04-12 20:30:52 -04:00
Mark Harrah a085e86f38 sort configurations for stable ordering of settings 2011-04-12 20:29:26 -04:00
Mark Harrah 4b70fe0921 auto-compiler plugins 2011-04-11 22:12:03 -04:00
Mark Harrah 399dd8ec48 support delegating to a project with different configurations 2011-04-10 18:51:50 -04:00
Mark Harrah 673f9923ab dependency filters, selecting/filtering UpdateReport 2011-04-10 16:22:48 -04:00
Mark Harrah 2f2e24c87d cross building
+, ++ require a space
+ <command>
++ <scala-version> [command]
set scala versions in crossScalaVersions
2011-04-09 20:42:57 -04:00
Mark Harrah 8d06ba2d92 cleanup some sequencing settings in Defaults 2011-04-09 19:58:49 -04:00
Mark Harrah ff7b5138c5 fix excessive Incomplete lifting
unnecessarily led to multiple tasks reported as failing for a single cause
2011-04-09 18:43:21 -04:00
Mark Harrah 7b2e4978fb fix line number off by one in configuration error messages 2011-04-09 15:49:35 -04:00
Mark Harrah 650bef7b06 demo script command 2011-04-09 15:04:18 -04:00
Mark Harrah e6b816d86e add additional in scope identifiers 2011-04-08 22:13:53 -04:00
Mark Harrah 50e453c70c provide more convenient access to BuildStructure and all projects 2011-04-08 22:03:41 -04:00
Mark Harrah 51e8dac35c tweaks to EvaluateConfiguration 2011-04-08 19:32:01 -04:00
Mark Harrah 1b147b4953 reorganize main 2011-04-08 19:15:13 -04:00
Mark Harrah 76ab8f8e53 detect cyclic references after freeze and translate nodes to keys 2011-04-07 22:51:25 -04:00
Mark Harrah 0b4d8fb505 fix collision with name 'state' in 'console-project' 2011-04-07 22:50:48 -04:00
Mark Harrah 2a737690a8 allow Scala-level cyclic references between projects
this occurs legally when different dependencies go in
  reverse directions, as with delegates
the direct arguments to Project.apply are now call-by-name
the modifying functions like 'aggregate' cannot be call-by-name
   since they are varargs
2011-04-07 22:48:01 -04:00
Mark Harrah dfb0a9ec8c put remaining keys in Keys 2011-04-06 21:00:48 -04:00
Mark Harrah 5a67998490 options specific to each test task, consolidates streams to the right task 2011-04-06 20:55:30 -04:00
Mark Harrah 1e7d628dbb lift anonymous Incompletes to the next keyed, empty Incomplete 2011-04-06 20:52:48 -04:00
Mark Harrah 159a3fe8f3 credentials and patterns for resolvers 2011-04-05 18:44:47 -04:00