sbt, the interactive build tool
Go to file
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
launch Include new repositories to grab sbt 2016-05-08 16:21:23 -04:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main s/newInstance/getDeclaredConstructor().newInstance() 2017-03-15 11:53:49 +09:00
main-actions/src Fix a bunch but not all compile warnings 2017-03-03 01:33:44 +01:00
main-command/src/main Fix a bunch but not all compile warnings 2017-03-03 01:33:44 +01:00
main-settings/src Introduce Def displayBuildRelative/showBuildRelativeKey 2017-03-05 13:42:15 +00:00
notes Merge pull request #2990 from valydia/1.0.x 2017-03-09 14:46:19 -05:00
project s/newInstance/getDeclaredConstructor().newInstance() 2017-03-15 11:53:49 +09:00
protocol/src/main Drop aggregation in querying settings 2017-03-05 13:42:14 +00:00
run Merge pull request #2810 from kzys/remove-process-extra 2017-01-21 17:06:41 -05:00
sbt/src Remove sbt.syntax 2017-02-08 02:26:50 -05:00
scripted Find another way to avoid unused warnings 2017-03-03 10:47:36 +01:00
src/main/conscript sbt 1.0 nightly 2017-01-16 11:43:37 -05:00
tasks Upgrade scalariform version 2016-12-11 12:13:11 +00:00
tasks-standard Fix a bunch but not all compile warnings 2017-03-03 01:33:44 +01:00
testing s/newInstance/getDeclaredConstructor().newInstance() 2017-03-15 11:53:49 +09:00
.gitattributes Added .gitattributes file. 2013-04-25 00:06:51 +08:00
.gitignore Review comments for https://github.com/sbt/sbt/pull/2633 2017-01-22 13:10:34 -05:00
.java-version Configure JVM 1.8 in .java-version 2016-10-07 08:48:23 -05:00
.travis.yml Bump TravisCI config to oraclejdk8 2016-10-07 10:21:32 -05:00
CONTRIBUTING.md CONTRIBUTING: Update for 1.0.x 2017-02-23 15:50:47 -05:00
ISSUE_TEMPLATE.md Add "Clean history" to contributing with links 2016-02-19 13:21:11 +00:00
LICENSE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
MIGRATION.md Remove sbt.syntax 2017-02-08 02:26:50 -05:00
NOTICE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
PULL_REQUEST_TEMPLATE.md Add "Clean history" to contributing with links 2016-02-19 13:21:11 +00:00
README.md readme 2016-05-08 14:49:43 -04:00
build.sbt Fix build warnings 2017-03-02 14:44:01 +01:00
reset.sh Handle closed socket 2016-10-27 02:42:12 -04:00
server.md Update to Contraband 2017-01-06 11:27:06 -05:00

README.md

sbt

sbt is a build tool for Scala, Java, and more.

For general documentation, see http://www.scala-sbt.org/.

sbt 1.0.x

This is the 1.0.x series of sbt. The source code of sbt is split across several Github repositories, including this one.

  • sbt/io hosts sbt.io module.
  • sbt/util hosts a collection of internally used modules.
  • sbt/librarymanagement hosts sbt.librarymanagement module that wraps Ivy.
  • sbt/zinc hosts Zinc, an incremental compiler for Scala.
  • sbt/sbt, this repository hosts modules that implements the build tool.
  • Setup: Describes getting started with the latest binary release.
  • FAQ: Explains how to get help and more.
  • sbt/sbt-zero-seven: hosts sbt 0.7.7 and earlier versions

Issues and Pull Requests

Please read CONTRIBUTING carefully before opening a GitHub Issue.

The short version: try searching or asking on StackOverflow and sbt-dev.

license

See LICENSE.