Commit Graph

11969 Commits

Author SHA1 Message Date
Dale Wijnand 4e29083f3b Merge pull request #3033 from xuwei-k/isSnapshot-the-the
fix typo
2017-03-21 08:20:04 +00:00
Dale Wijnand e430c223da Merge pull request #3034 from xuwei-k/testing-sbt-plugins-url
update "Testing sbt plugins" url
2017-03-21 08:19:47 +00:00
xuwei-k 52dc8cca68 update "Testing sbt plugins" url 2017-03-21 16:49:36 +09:00
xuwei-k f04dbe50bf fix typo 2017-03-21 16:45:42 +09:00
Dale Wijnand bbeecae0b1
Define OptJsonWriter & put it on AttributeKey 2017-03-21 00:09:17 +00:00
Dale Wijnand f760ef41fb Merge pull request #147 from sbt/wip/mkdir
mkdir -p
2017-03-17 21:46:42 +00:00
Eugene Yokota 1ea1f5d52d mkdir -p
Fixes sbt/sbt#3005
2017-03-17 16:54:04 -04:00
eugene yokota 304dd726dc Merge pull request #146 from monktastic/patch-1
Preserve quotes in system properties
2017-03-16 17:53:12 -07:00
monktastic c7f3be3b58 Preserve quotes in system properties
Today you cannot have spaces in system properties:

$ sbt -Dfoo="bar baz" ...

It passes [-Dfoo=bar] and [baz] to java (see https://github.com/sbt/sbt/issues/2787).

This change allows you to do:

$ sbt "-Dfoo=bar baz"

which will pass ["-Dfoo=bar baz"]. And both of these two:

$ sbt "-Dfoo=bar"
$ sbt -Dfoo=bar

still work, passing [-Dfoo=bar].
2017-03-16 17:01:57 -07:00
Dale Wijnand cb756f5443 Merge pull request #3016 from xuwei-k/Class-newInstance
s/newInstance/getDeclaredConstructor().newInstance()
2017-03-15 10:25:01 +01:00
xuwei-k 5b00e7326b s/newInstance/getDeclaredConstructor().newInstance()
java.lang.Class#newInstance deprecated since Java 9

http://download.java.net/java/jdk9/docs/api/java/lang/Class.html#newInstance--

```
Deprecated. This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.
The call

 clazz.newInstance()

can be replaced by

 clazz.getDeclaredConstructor().newInstance()

The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException.
Creates a new instance of the class represented by this Class object. The class is instantiated as if by a new expression with an empty argument list. The class is initialized if it has not already been initialized.
```
2017-03-15 11:53:49 +09:00
Eugene Yokota 8f0d61ec0d Clean dist 2017-03-11 16:34:18 -05:00
Eugene Yokota e4dae9a120 Fix Java 9 support 2017-03-11 16:34:10 -05:00
Eugene Yokota a867202ea5 Add ivy-releases to resolver 2017-03-11 14:29:58 -05:00
Dale Wijnand c6c8470f98 Merge pull request #145 from sbt/wip/offline
add offline installation
2017-03-10 22:19:02 +00:00
Eugene Yokota cea5d178d8 add offline installtion
To utilize local preloaded repo, this will create lib/ directory with all artifacts required for sbt. This can be rsynced to the preloaded repo.
2017-03-10 16:56:00 -05:00
eugene yokota 479a28ac40 Merge pull request #139 from sbt/wip/linux
Update the build and fix Linux installers
2017-03-09 23:33:14 -05:00
eugene yokota 21b7fdbd0f Merge branch 'master' into wip/linux 2017-03-09 23:32:47 -05:00
eugene yokota 37e970cdcd Merge pull request #143 from sbt/wip/jdk9
add JDK 9 support
2017-03-09 23:30:38 -05:00
Eugene Yokota 39d8504045 --rt-ext-dir returns a dir specific to JDK 9 ver 2017-03-09 20:10:59 -05:00
eugene yokota c6b593df95 Merge pull request #2990 from valydia/1.0.x
Add logging of the name(s) of build files
2017-03-09 14:46:19 -05:00
eugene yokota 00113e7133 Merge pull request #2962 from ekrich/wip/fix-2551
Fix #2551: scripted mode ignores quotation
2017-03-09 14:45:13 -05:00
eugene yokota 84502e7712 Merge pull request #2935 from dwijnand/query-settings
Query settings
2017-03-05 11:58:07 -05:00
Dale Wijnand 5cedfab81e
Bring back global project-axis reference 2017-03-05 13:42:17 +00:00
Dale Wijnand 07e2da9d85
Don't breach responsibility, NetworkChannel
Only depend on BuildStructure and currentBuild, not the whole of State!
2017-03-05 13:42:16 +00:00
Dale Wijnand bf5bc46d3c
Disallow SettingQuery relying on currentProject
Introduce a specialised scopedKeyParser on SettingQuery to redefine the
"projectRef" parser to never match "*" or omitted project refereneces.
2017-03-05 13:42:16 +00:00
Dale Wijnand b282ea51d7
Extract Act.taskKeyExtra 2017-03-05 13:42:15 +00:00
Dale Wijnand 206c3e6d4d
Introduce Def displayBuildRelative/showBuildRelativeKey 2017-03-05 13:42:15 +00:00
Dale Wijnand f09897ca29
Drop aggregation in querying settings 2017-03-05 13:42:14 +00:00
Dale Wijnand 2efacb8c46
Delete SettingQuery instances we don't need
.. now that there's a copy in the git history
2017-03-05 13:42:14 +00:00
Dale Wijnand d9d741851a
Add and handle GetSetting 2017-03-05 13:42:11 +00:00
Dale Wijnand 164b0fe830
Pass State to NetworkChannel 2017-03-05 13:40:50 +00:00
Dale Wijnand 1ef59759cc
Extract onExecCommand 2017-03-05 13:40:49 +00:00
Dale Wijnand 4b88378c61
Delete stale contraband classes
This is due to sbt/contraband#75.
2017-03-05 13:40:11 +00:00
valydia 047a061812 Add logging of the name(s) of build files
Fixes #1911
2017-03-04 14:13:39 +00:00
Dale Wijnand ef56db9885 Merge pull request #2986 from dwijnand/compile-warnings
Fix a bunch but not all compile warnings
2017-03-04 01:36:30 +01:00
Dale Wijnand 7d27682fb2
Find another way to avoid unused warnings 2017-03-03 10:47:36 +01:00
eugene yokota 2c189d58e2 Merge pull request #2981 from dwijnand/build-warnings
Fix build warnings
2017-03-03 10:38:32 +01:00
Dale Wijnand e67cd6948b
Fix a bunch but not all compile warnings 2017-03-03 01:33:44 +01:00
Dale Wijnand b59258c50d
Fix build warnings 2017-03-02 14:44:01 +01:00
jvican 5cea7ae09f Do a first pass on the Zinc internal implementation
This commit addresses several concers:

* Document better the Zinc internal implementation.
* Getting the implementation ready for moving things from internal to
  public APIs. This will be done in a follow-up commit.
* Removing `inputs` and `setups` from the `IncrementalCompilerUtil` as
  they exist mainly to interface between Scala code and Java code. The
  reality is that both Java and Scala developers can easily call the
  constructors by themselves and don't learn more API methods.
* Removes unused imports, that emit stupid warnings.
* Make code more readable, especifically in the analyzing compilers for
  both Java and Scala, which was hardly understandable and documented.
* Make `AnalyzingJavaCompiler` to extend `JavaCompiler` as
  `AnalyzingCompiler` does for `ScalaCompiler`. In an upcoming commit,
  `AnalyzingCompiler` will be renamed into `AnalyzingScalaCompiler` for
  consistency reasons.
* Replace use of `sbt.util.Logger` helpers by `sbt.util.InterfaceUtil`.
2017-02-26 14:32:05 +01:00
Dale Wijnand d547b46ea6 Merge pull request #2973 from ashawley/contributing-1.0
CONTRIBUTING: Update for 1.0.x
2017-02-23 21:20:30 +00:00
Aaron S. Hawley 168f141616 CONTRIBUTING: Update for 1.0.x
Current development branch is 1.0.x, not 0.13. Mostly fixed by
replacing 0.13 references with 1.0 ones.
2017-02-23 15:50:47 -05:00
eugene yokota 22dffe43b5 Merge pull request #144 from cunei/wip-java-devel-fix
Fix java-devel dependency on rpm-based systems
2017-02-24 00:19:58 +09:00
Antonio Cunei 84624d8ce5 Fix java-devel dependency on rpm-based systems
The dependency as specified won't work on Fedora 25.

The situation concerning requiring the selection of Java versions
is tricky, and is detailed at:
https://github.com/elastic/logstash/issues/6275
The conclusion of that thread is that "it is not possible to
provide a package that correctly works for users of all supported
Java packages.", meaning a dependency on either one of OpenJDK or
Oracle JDK.

Assuming the dependency is on OpenJDK, the list of metapackages
provided is listed at:
https://github.com/elastic/logstash/issues/6275#issuecomment-261356980

The dependency "java-1.8.0-devel" will be satisfied by any
revision of OpenJDK 1.8, so that is the one that is proposed
in this pull request.
2017-02-22 11:56:57 +01:00
Eugene Yokota 605a17d949 move JDK9 logic within copyRt 2017-02-19 09:16:40 +01:00
Eugene Yokota ddb9cfd3f9 Switch over to using ManagedLogger 2017-02-17 12:40:56 -05:00
Eugene Yokota a12045ed42 some change for Scala 2.10 2017-02-15 18:52:04 -05:00
eugene yokota 105fcb5237 Merge pull request #2965 from cunei/wip-bridge
Update scalaCompilerBridgeSource
2017-02-15 14:42:07 -08:00
Eugene Yokota dfc3312c7d oraclejdk8 2017-02-15 12:21:08 -05:00