Ethan Atkins 7dbf7978e9 Disable multiple main class warning w/ qualified key
If the user runs foo/runMain in a project with multiple main classes,
sbt will still warn the user about their being multiple main classes
even though this is a pointless warning since the user either is running
runMain which requires a main class. The run task is also excluded since
by default it prompts the user with a main class selector. The previous
logic for doing this filtering was bad because it only looked at the
first command in a sequence and couldn't handle the foo/runMain case
since it was looking for an exact match with `run` or `runMain`. This
commit relaxes those restrictions to look at all of the strings in the
command as well as splitting the string to check if the last part of the
key ends in run or runMain. This logic could theoretically be incorrect
if the user wrote an input task that was expecting run or runMain as
user input but even in that case the only consequence would be that they
wouldn't see the multiple main class warning which generally isn't all
the helpful unless you are packaging a jar that expects there to be only
one main class. It seems unlikely that that the user would be running a
custom input task that is both packaging a jar and expecting run or
runMain as input strings.
2021-05-30 14:48:05 -07:00
2021-05-28 18:13:28 +02:00
2020-08-15 09:35:59 -07:00
2021-05-28 18:13:28 +02:00
2021-05-28 18:13:28 +02:00
2020-12-21 17:21:54 +00:00
2021-02-06 22:31:47 -05:00
2021-05-28 18:13:28 +02:00
2021-01-31 12:59:31 -05:00
2021-01-10 20:24:05 -05:00
2019-09-05 14:11:07 -04:00
2021-04-19 10:45:29 -04:00
2019-06-11 09:30:14 +02:00
2020-11-19 12:42:26 -08:00
2021-04-19 10:45:29 -04:00
2021-04-19 10:45:29 -04:00
2021-04-19 10:45:29 -04:00
2018-07-08 22:18:57 +09:00
2021-04-19 10:45:29 -04:00
2017-09-16 15:52:58 -04:00
2021-05-17 16:50:54 -04:00
2020-11-14 14:23:48 -05:00
2021-04-19 23:43:15 -04:00
2017-10-03 01:45:06 -04:00
2018-04-25 14:55:09 +01:00

Build Status Latest version Gitter Chat

sbt

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

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

sbt 1.x

This is the 1.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/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.

license

See LICENSE.

S
Description
sbt, the interactive build tool
Readme
97 MiB
Languages
Scala 94.5%
Java 3.1%
Shell 1.1%
Batchfile 0.9%
Roff 0.2%
Other 0.1%