Commit Graph

70 Commits

Author SHA1 Message Date
Eugene Yokota 456e4c2f54 straighten up dependencies 2016-08-22 18:20:32 -04:00
Eugene Yokota 954e744408 Adds templateResolvers and `new` command
This adds `new` command, which helps create a new build definition. The
`new` command is extensible via a mechanism called the template
resolver,
which evaluates the arbitrary arguments passed to the command to find
and run a template.

As a reference implementation [Giter8][g8] is provided as follows:

    sbt new eed3si9n/hello.g8

This will run eed3si9n/hello.g8 using Giter8.

  [g8]: http://www.foundweekends.org/giter8/
2016-08-22 02:38:46 -04:00
Dale Wijnand b2731717fe Bump version to 0.13.13-SNAPSHOT 2016-07-18 10:21:52 +01:00
Eugene Yokota 8074e6e533 0.13.12 2016-07-15 23:35:36 -04:00
Eugene Yokota 081a9868ce Adds a scripted test that tests repo override 2016-04-24 14:24:05 -04:00
eugene yokota b10414da73 Merge pull request #2564 from Duhemm/wip/fix-2518
Off-the-grid installation of sbt
2016-04-20 16:53:19 -04:00
Martin Duhem fab20c73bf Add `scala-reflect.jar` to JARs of `StaticScalaProvider`
It turns out we need to have `scala-reflect.jar` on classpath to compile
the compiler bridge for the static scala instance of the launcher.
2016-04-11 09:14:37 +02:00
Martin Duhem b8472668ff Static launcher, get bridge sources from resources
This commit introduces a new "static" launcher that does not use Ivy to
gather all the artifacts that it requires, but rather expect them to be
immediately available.

To be able to use sbt without Internet access, we add a new
`ComponentCompiler` that is able to retrieve the bridge sources from the
resources on classpath and compile it.
2016-04-06 12:01:34 +02:00
Martin Duhem 5b0c9aa938 Add alternative resolver to scripted test using a plugin 2016-04-05 17:33:51 +02:00
Martin Duhem 8318ff9b63 Publish compiler interface to alternate repo for Scripted
Some scripted tests override the default local repository, which
produces errors with the compiler because sbt cannot find the sources
for the compiler interface.

This fix proposes to publish the compiler interface sources to an
alternate local repository before running the scripted tests. This
alternate repository is added to the scripted sbt's configuration, so
that sbt is finally able to find the compiler interface sources.
2016-04-05 17:33:51 +02:00
Dale Wijnand d5e2e7d406 Update version to 0.13.12-SNAPSHOT 2016-02-22 21:15:22 +00:00
Eugene Yokota 7ebba1c54e sbt 0.13.11 is the new 0.13.10 2016-02-21 18:50:17 -05:00
Grzegorz Kossakowski e738bc3f73 Run unit tests from compileInterface on Travis CI.
Also, make the intent of the env variable clearer in travis configuration.

Fixes #2357.
2016-01-08 21:53:53 +01:00
Eugene Yokota 8d2a15da6e Bumping Scala version to 2.10.6. 2015-12-14 05:26:34 -05:00
Dale Wijnand 553dffec39 Upgrade to 0.13.9. 2015-08-19 12:16:03 +01:00
Dale Wijnand a0ac6033f6 Set version to 0.13.10-SNAPSHOT. 2015-08-03 22:18:33 +01:00
eugene yokota 5824ef6d7f Merge pull request #2106 from Duhemm/interface-specific-sources-clean
Find most specific version of compiler interface sources
2015-07-17 10:25:16 -04:00
fkorotkov 4c86117b79 Line content from diagnostic classes if available 2015-07-16 15:23:23 -04:00
Martin Duhem 8ba5b6f90e Don't set `publishMavenStyle := true` for compiler interface 2015-07-16 14:02:25 +02:00
Martin Duhem f3dc2ba282 Revive comment about sbt's build complications 2015-07-16 13:53:10 +02:00
Martin Duhem 90a8423d8e Find most specific version of compiler interface sources
This commit introduces a mechanism that allows sbt to find the most
specific version of the compiler interface sources that exists using
Ivy.

For instance, when asked for a compiler interface for Scala 2.11.8-M2,
sbt will look for sources for:

 - 2.11.8-M2 ;
 - 2.11.8 ;
 - 2.11 ;
 - the default sources.

This commit also modifies the build definition by removing the
precompiled projects and configuring the compiler-interface project so
that it publishes its source artifacts in a Maven-friendly format.
2015-07-16 11:18:48 +02:00
Josh Suereth 4abc8386f2 Merge pull request #2085 from twitter-forks/stuhood/java-static-final-fields-as-singletons
Encode static-final constant fields as Singletons
2015-07-14 12:35:56 -04:00
eugene yokota 67d908a4a6 Merge pull request #2101 from sbt/0.13.9
merge 0.13.9 on 0.13
2015-07-10 16:07:05 -04:00
Pierre DAL-PRA 3ffa333c14 Fix most build warnings 2015-07-10 11:53:48 +02:00
Eugene Yokota 8cde12887e Ref #2068. Scala version bump needs to accompany scala-reflect bump. 2015-07-09 21:20:47 -04:00
Stu Hood a83f5eabf2 Add missing dependency 2015-07-06 11:11:06 -07:00
Eugene Yokota 13c8d00848 Fixes #2043. bintrayRelease is repeated 20x? 2015-06-24 16:56:45 -04:00
Eugene Yokota bc163bbe3e Fix typo 2015-06-20 14:42:26 -04:00
Eugene Yokota 131e99b7c9 Skip process unit tests 2015-06-20 14:21:59 -04:00
Eugene Yokota 60e2057b15 Adds bundledLauncherProj to allProj
This matters when someone tries to locally build sbt from source.
2015-06-20 14:21:59 -04:00
Eugene Yokota 618ac5236a Bumping up Scala version to 2.10.5/2.11.6. Fixes #1980
To pass File => Unit callback across the classloader boundary
I am encoding it as a java.util.List[File] by overriding
 method.
This was needed since Java didn't allow me to cast
from one classloader to the other.
2015-06-19 16:51:39 -04:00
Eugene Yokota 3d90d92dbd Fixes the releasing 2015-06-09 17:20:03 +02:00
Eugene Yokota 72f8606f28 call bintrayRelease on nightly 2015-04-22 00:28:47 -04:00
Eugene Yokota 2da38b92b1 publish nightlies to bintray 2015-04-20 12:51:18 -04:00
Eugene Yokota f4dbdae3c3 publish to bintray 2015-04-20 10:56:37 -04:00
eugene yokota 6b89a134e7 Merge pull request #1946 from dwijnand/rename-root-project-to-sbtRoot
Rename root project to sbtRoot.
2015-04-07 14:50:27 -07:00
Dale Wijnand f4e692ca88 Rename root project to sbtRoot.
This is mostly for IntelliJ IDEA.

Currently IntelliJ IDEA's Scala (and SBT) plugin defines:

* the project name (as seen in the window title and in the "open recent
  project" list) from `name`
* the root module (as seen in the project view and in project structure)
  from `id`
* doesn't use `moduleName` at all

After this change the sbt project is no longer identified as "root".

I was undecided between `sbtRoot` and `sbtRootProj`, and went with the
shorter option. I'm happy to revise this decision.
2015-03-27 01:35:36 +00:00
Dale Wijnand 5c2ec63fa6 Make use of the nicer Project settings syntax in 0.13.8. 2015-03-27 01:19:26 +00:00
Josh Suereth 74a9c047f8 Merge pull request #1938 from sbt/wip/launcher-as-module
Removing launcher in favor of re-wrapping sbt/launcher module
2015-03-26 08:13:46 -04:00
Josh Suereth 004a557c37 Remove unused proguard configuration. 2015-03-24 18:37:57 -04:00
Josh Suereth a28663f06d fix launcher re-publication.
* The rebundled sbt launcher is now pushed into the old location again.
2015-03-24 18:32:56 -04:00
Josh Suereth a77a6fbc0b Add sonatype-snapshots resolver to the list for the launcher module snapshots. 2015-03-24 16:16:55 -04:00
Josh Suereth 9380ca02eb Migrate to using the sbt/launcher module, rather than having the code embedded.
* Remove launch/* code/tests, as these are in the sbt/launcher project.
* Create a new project which will resolve launcher module from sonatype-snapshots,
  and repackage it for the currently building version of sbt.
* Remove ComponentManagerTest which was relying DIRECTLY on launcher classes.
  We'll need to reconfigure this shortly to enable the tests again.

Remaining TODOs -

* Update resolvers so people can find the launcher.
* Add ComponentManagerTest back.
* Re-publish the sbt-launch.jar in the location it used to be published.
2015-03-24 16:12:51 -04:00
Josh Suereth 8e0862b011 Start using launcher interface from sbt/launcher module. 2015-03-24 11:14:13 -04:00
Eugene Yokota efd0c5a2e5 0.13.9-SNAPSHOT 2015-03-23 13:27:27 -04:00
Eugene Yokota 80291d95e7 bumping up to 0.13.8 2015-03-20 12:56:39 -04:00
Eugene Yokota b70fa6e0c2 Use pickler to cache UpdateReport for update task. #1763 2015-03-09 21:22:58 -04:00
Eugene Yokota ef1ec99bd0 Implement pickler for UpdateReport. #1763 2015-03-09 21:22:57 -04:00
Eugene Yokota 720e982507 Remove "so clean" 2015-03-09 12:57:52 -04:00
Eugene Yokota c384d6c2e4 Fixing precompiled and nightly build
We noticed that -SNAPSHOT is being published as our nightly.
This is because "wow" command (or ++) does not replay version injected
by stamp-version.
2015-02-25 12:31:21 -05:00