Commit Graph

538 Commits

Author SHA1 Message Date
Mark Harrah 10aa2d67c6 use sbt version in target path for sbt plugins 2011-08-05 21:59:49 -04:00
Mark Harrah 70dcae84ee preserve key+configuration ambiguity through task+extra parsing. fixes #135 2011-08-05 21:59:49 -04:00
Mark Harrah 1d4d566d6b support use of native libraries in 'run' and 'test' 2011-08-05 21:56:32 -04:00
Mark Harrah 29db8dbe8d include native libraries on unmanaged classpath 2011-08-05 21:56:32 -04:00
Mark Harrah 93801cd946 temporary directory for use by tasks that will be cleaned up after task execution 2011-08-05 21:56:32 -04:00
Mark Harrah f065037572 onComplete hook for cleanup after task execution 2011-08-05 21:56:32 -04:00
Indrajit Raychaudhuri bb75b74eb6 Remove some deprecations and redundant code 2011-08-05 13:30:04 +05:30
Mark Harrah 980e906ca1 handle custom -bootclasspath in incremental recompilation 2011-08-04 07:20:25 -04:00
Mark Harrah a19d5a799c try out simplified display of scoped keys 2011-08-04 07:20:25 -04:00
Mark Harrah 70113c88fa remove special case for display for 'compile' configuration 2011-08-04 07:20:25 -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
Mark Harrah e67b3be331 allow Defaults.packageTasks to be used in global configuration 2011-08-01 14:23:42 -04:00
Mark Harrah a6ef6481ac use configurations for modules for update-classifiers. fixes #104 2011-07-31 22:17:50 -04:00
Mark Harrah 93ac92fee7 artifact name should be moduleName by default, not normalized name 2011-07-31 16:50:39 -04:00
Mark Harrah f8d12c5106 Seq[Setting[_]] <=> SettingsDefinition 2011-07-30 18:11:20 -04:00
Mark Harrah d8362761de fix fullRun*Task not doing work. missed by compiler due to value discarding 2011-07-30 18:11:20 -04:00
Mark Harrah af6b420083 fix automatic artifact configuration selection for non-standard scope configurations 2011-07-29 23:33:10 -04:00
Mark Harrah 4305d94f5e add convenience methods for filtering settings and keys 2011-07-29 23:33:10 -04:00
Mark Harrah 3e9921a07a for undefined references, suggest the nearest defined scope that is more specific if it exists. fixes #135 2011-07-27 22:35:20 -04:00
Mark Harrah c195f943c0 aggregate 'last'. fixes #131 2011-07-27 19:50:59 -04:00
Mark Harrah a8fd017499 maven-compatible plugin dependency system 2011-07-27 19:50:59 -04:00
Mark Harrah e75628c81b make scalaInstance a task. fixes #127 2011-07-26 13:34:02 -04:00
Mark Harrah 73a10644d7 add 'skip' for manually overriding whether recompilation should occur. fixes #128 2011-07-26 13:34:01 -04:00
Michael Bayne 74ac135968 Fixed reversed logic in fix for #125. 2011-07-26 09:25:57 -07:00
Mark Harrah 021009052e don't print Uninitialized exception name 2011-07-25 21:59:22 -04:00
Mark Harrah eb31cc025a Allow multiple sources to target a target directory in sync.noDuplicateTargets. fixes #125 2011-07-25 21:38:01 -04:00
Mark Harrah 5d353b4113 lookup sbt version in 'update' to allow using binary plugins with nightlies 2011-07-25 21:38:01 -04:00
Mark Harrah 1c151d116a pull scoped key examples from references as well as definitions. ref #121
this should improve the keys available for completion, including globally defined keys
2011-07-24 22:35:27 -04:00
Mark Harrah a1dc17b2c6 allow task axis to be specified when the setting has no instances with it specified. fixes #121 2011-07-24 22:35:27 -04:00
Mark Harrah 00c41ae59a include logging backing file in 'about' command output 2011-07-24 17:36:42 -04:00
Mark Harrah 30baf74169 improved global logging and 'last' command 2011-07-24 17:36:42 -04:00
Mark Harrah f654b03618 allow running last from load failure prompt 2011-07-24 17:36:42 -04:00
Mark Harrah 2d4d27e529 add 'about' command with sbt versions and Scala versions 2011-07-24 17:36:42 -04:00
Mark Harrah 109326d34b additional warning when ignoring project load failure 2011-07-24 17:36:42 -04:00
Mark Harrah a9315dbd49 Interpret empty string as retry on project load error. 2011-07-24 17:36:42 -04:00
Mark Harrah 2cacdff1f8 use sbt snapshots repository for -SNAPSHOT version 2011-07-24 17:36:41 -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 71d306a2a2 always publish ivy files for sbt plugins 2011-07-23 23:07:54 -04:00
Mark Harrah cc10940813 use extra attributes for sbt, Scala version of sbt plugins 2011-07-23 23:07:54 -04:00
Mark Harrah f0a9305ba2 clean up graphSettings 2011-07-23 23:07:54 -04:00
Fred Dubois 4ffe240eca Support for readonly file ProjectRef
This allows using a project reference that points to a readonly
directory.

The use case for this is having sbt plugin projects on a network
share (readonly) that you can just point to. The plugin projects
get copied and built automatically, just like a git project
reference gets cloned and built.

This will ease plugin imcompatibilies between minor sbt versions,
avoiding to have to cross build plugins against all compatible sbt
versions.
2011-07-23 22:24:46 -04:00
Mark Harrah 4ae0ba6b57 more refactoring of special settings: input tasks. fixes #114 2011-07-21 22:03:56 -04:00
Mark Harrah fb9e3bd516 apply finalTransforms to reapplied settings 2011-07-21 22:03:56 -04:00
Mark Harrah 6acbbb05a3 support configuring checksums differently for publish, publish-local, update, and update-sbt-classifiers. fixes #115 2011-07-21 22:03:56 -04:00
Mark Harrah bf8b577e4f proper resolvedScoped implementation 2011-07-19 21:29:05 -04:00
Mark Harrah f8183cc6f2 remove incomplete debugging 2011-07-19 21:29:05 -04:00
Mark Harrah e748a74eac spelling 2011-07-19 21:29:05 -04:00
Mark Harrah 3f0644d136 use launcher repositories for update-sbt-classifiers. fixes #88 2011-07-19 21:29:05 -04:00
Mark Harrah b3bcd82a21 better location for global settings in the precedence chain 2011-07-18 17:14:22 -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 b956b62c89 use name setting when displaying updated project 2011-07-17 11:26:27 -04:00
Mark Harrah cc50225bfb fix placement of global settings so that project-local settings override global settings 2011-07-16 13:31:18 -04:00
Mark Harrah 0ea418e985 provide better indication of cause of incompatible sbt versions 2011-07-16 12:53:29 -04:00
Mark Harrah b29380de96 add default identity load/unload transformations 2011-07-15 15:48:36 -04:00
Mark Harrah dcedc57ad7 better default transitiveClassifiers for update-sbt-classifiers 2011-07-13 18:08:29 -04:00
Mark Harrah ed20823886 cleanup 2011-07-13 18:08:29 -04:00
Mark Harrah 3eef6229db show test key in no tests message. fixes #102 2011-07-12 23:09:57 -04:00
Mark Harrah 555b1c04a4 shorten default hash suffix for project ID 2011-07-12 23:09:57 -04:00
Mark Harrah f7cb85d36e restrict discarding session settings error message to direct load/reload. fixes #99 2011-07-12 23:09:57 -04:00
Mark Harrah 2d342d1485 allow global sbt directory to be configured. fixes #96 2011-07-12 23:09:57 -04:00
Mark Harrah cbf7b82cdb clean up whitespace handling in commands. fixes #97 2011-07-12 07:47:31 -04:00
Mark Harrah eb14e97485 use runtime full-classpath for plugins 2011-07-11 07:55:27 -04:00
Mark Harrah 2e99fde9d2 overrideConfigs method for easier configuration substitution
ref #42
2011-07-09 16:54:41 -04:00
Mark Harrah 9737a30a7d global settings. closes #52 2011-07-09 16:54:41 -04:00
Mark Harrah b096d1b175 global settings preparation: separate compilation/loading stages of Eval 2011-07-09 16:54:41 -04:00
Mark Harrah 1d792c3601 warn when there is an sbt version conflict. fixes #80 2011-07-08 21:54:59 -04:00
Mark Harrah 15427d32b3 Include evicted modules and statistics in UpdateReport 2011-07-08 21:54:59 -04:00
Mark Harrah 467f6bc486 scope transitiveClassifiers by the update*classifiers task using it 2011-07-07 22:04:28 -04:00
Mark Harrah ac4b00c1de warn when test argument provided for undefined test framework. fixes #87 2011-07-07 22:04:28 -04:00
Mark Harrah 1ee6b903f3 better global plugin support 2011-07-06 07:30:47 -04:00
Mark Harrah d7a35e8e1d minor rearranging of rootProject 2011-07-06 07:30:47 -04:00
Mark Harrah 6e1c41af64 psuedo-unique default ID to avoid collisions in simple cases 2011-07-06 07:30:47 -04:00
Mark Harrah aebde6b3e6 move dependency mapping to IvySbt#Module 2011-07-06 07:30:47 -04:00
Mark Harrah 179a2a31c8 convenience methods on Scope for setting axes 2011-07-06 07:30:47 -04:00
Mark Harrah 353be43978 redid global plugins for proper classpath handling and preparation for global settings (pending) 2011-07-06 07:30:47 -04:00
Mark Harrah e36ab1f000 temporarily drop global plugins, preserve Attributed more 2011-07-06 07:30:47 -04:00
Mark Harrah 9fb6f20177 declare sbt dependency for plugins to be in Provided, ref #80 2011-07-03 15:44:53 -04:00
Mark Harrah 17fad01b01 convenience on State for global locking 2011-07-03 15:44:52 -04:00
Mark Harrah 8d922b61ab cleanup MainResult handling to enable finer control over reloading 2011-07-01 23:38:03 -04:00
Mark Harrah f94ab145b5 accept arguments for scripts 2011-06-29 21:44:55 -04:00
Mark Harrah 5ec6a0479f fix help message for 'set' 2011-06-29 07:47:33 -04:00
Mark Harrah 37c5062d2d don't drop session settings during cross build 2011-06-27 22:29:48 -04:00
Mark Harrah 205a67e4a3 warn when reload discards session settings 2011-06-27 22:29:48 -04:00
Mark Harrah 5b1ca2c6b0 drop SessionSettings.prepend, which wasn't used 2011-06-27 22:29:48 -04:00
Simon Olofsson f05cbf00b2 Recover when gitRetrieve(.) fails.
When gitRetrieve(.) fails (e.g. because no git is installed) an
exception is thrown but the created directory isn't removed. This commit
removes the directory when an exception occurs, so that the user can
retry.
2011-06-27 16:45:22 +02:00
Mark Harrah f7068a4cbb introduce file-mappings for File->File, Extracted.append for reloading with additional settings 2011-06-26 12:27:06 -04:00
Mark Harrah 48940bf23c Merge pull request #74 from duboisf/issue_68
Added JavacLogger, closes #68
2011-06-25 06:59:57 -07:00
Fred Dubois 2f4be49cf6 Added JavacLogger, for issue #68
- JavacLogger.msgs uses ListBuffer for constant time append
- Synchronized access to JavacLogger.msgs since appends comes from multiple
  threads
- JavacLogger.info uses Level.Info instead of Level.Debug
- Wrapped call to javac in allCatch to guarantee logger being flushed
2011-06-25 09:55:23 -04:00
Mark Harrah e73ebda27d fix accumulation of loggers in tests. allows custom test configurations to extend Test 2011-06-25 09:37:55 -04:00
Mark Harrah 1307292256 put exclude_classifiers in target/ of the root project. fixes #70. 2011-06-23 20:37:57 -04:00
Mark Harrah 18a3e7995e add new ProjectReference called LocalRootProject for referencing the root project in the current build 2011-06-23 20:37:56 -04:00
Mark Harrah e5fbfdd3c1 Resolve References in plugins 2011-06-23 20:37:56 -04:00
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