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

 

http://www.scala-sbt.org/0.13/docs/index.html

sbt is a build tool for Scala, Java, and more. It requires Java 1.6 or later.

Install 

See Installing sbt for the setup instructions.

Getting Started 

To get started, please read the Getting Started Guide. You will save yourself a lot of time if you have the right understanding of the big picture up-front. All documentation may be found via the table of contents included at the end of every page.

Use Stack Overflow for questions. Use the sbt-dev mailing list for discussing sbt development. Use@scala_sbt for questions and discussions.

Features of sbt 

  • Little or no configuration required for simple projects
  • Scala-based build definition that can use the full flexibility of Scala code
  • Accurate incremental recompilation using information extracted from the compiler
  • Continuous compilation and testing with triggered execution
  • Packages and publishes jars
  • Generates documentation with scaladoc
  • Supports mixed Scala/Java projects
  • Supports testing with ScalaCheck, specs, and ScalaTest. JUnit is supported by a plugin.
  • Starts the Scala REPL with project classes and dependencies on the classpath
  • Modularization supported with sub-projects
  • External project support (list a git repository as a dependency!)
  • Parallel task execution, including parallel test execution
  • Library management support: inline declarations, external Ivy or Maven configuration files, or manual management

Also 

This documentation can be forked on GitHub. Feel free to make corrections and add documentation.

Documentation for 0.7.x has been archived here. This documentation applies to sbt 0.13.16.

See also the API DocumentationSXR Documentation, and the index of names and types.

 

[root@hadoop2 mongo-spark]# ./sbt  check
Getting org.scala-sbt sbt 0.13.9 ...
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.9/jars/sbt.jar ...
	[SUCCESSFUL ] org.scala-sbt#sbt;0.13.9!sbt.jar (15434ms)
downloading https://jcenter.bintray.com/org/scala-lang/scala-library/2.10.5/scala-library-2.10.5.jar ...
	[SUCCESSFUL ] org.scala-lang#scala-library;2.10.5!scala-library.jar (6721ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.9/jars/main.jar ...
	[SUCCESSFUL ] org.scala-sbt#main;0.13.9!main.jar (18083ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.9/jars/compiler-interface-src.jar ...
	[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.9!compiler-interface-src.jar (9661ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.9/jars/compiler-interface-bin.jar ...

  

 

 

 

[root@hadoop2 mongo-spark]# ./sbt +publish-signed
[info] Loading project definition from /usr/local/mongo-spark/project
[info] Set current project to mongo-spark-connector (in build file:/usr/local/mongo-spark/)
[info] Setting version to 2.11.8
[info] Reapplying settings...
[info] Set current project to mongo-spark-connector (in build file:/usr/local/mongo-spark/)
[warn] Credentials file /root/.ivy2/.spCredentials does not exist
[info] Updating {file:/usr/local/mongo-spark/}mongo-spark-connector...
[info] Packaging /usr/local/mongo-spark/target/scala-2.11/mongo-spark-connector_2.11-2.2.0-sources.jar ...
[info] Formatting 71 Scala sources {file:/usr/local/mongo-spark/}mongo-spark-connector(compile) ...
[info] Done packaging.
Waiting for lock on /root/.ivy2/.sbt.ivy.lock to be available...
[info] Wrote /usr/local/mongo-spark/target/scala-2.11/mongo-spark-connector_2.11-2.2.0.pom
[info] Resolving org.apache.hadoop#hadoop-main;2.6.5 ...

  

 

 

posted @ 2017-11-23 20:49  papering  阅读(316)  评论(0编辑  收藏  举报