2019-07-03 16:04:17 +02:00
|
|
|
lazy val publishWebsite = taskKey[Unit]("Publish website")
|
|
|
|
|
|
|
|
publishWebsite := Def
|
|
|
|
.sequential(
|
2021-04-01 18:44:02 +02:00
|
|
|
Compile / unidoc,
|
2019-07-03 16:04:17 +02:00
|
|
|
Compile / docusaurusPublishGhpages
|
|
|
|
)
|
|
|
|
.value
|
|
|
|
|
|
|
|
publish / skip := true
|
|
|
|
|
|
|
|
////////
|
|
|
|
/// Mdoc
|
|
|
|
|
|
|
|
// Without this we get errors on bad links,
|
|
|
|
// but those links are to other parts of
|
|
|
|
// the website, AKA false errors.
|
|
|
|
// See this issue: https://github.com/scalameta/mdoc/issues/94
|
|
|
|
mdocExtraArguments := List("--no-link-hygiene")
|
|
|
|
|
2019-07-11 12:06:49 +02:00
|
|
|
// these variables gets passed to mdoc, and can be read
|
|
|
|
// from there
|
2021-06-16 17:17:10 +02:00
|
|
|
mdocVariables ++= Map(
|
2021-06-18 16:18:54 +02:00
|
|
|
"STABLE_VERSION" -> CommonSettings.previousStableVersion,
|
2019-07-03 16:04:17 +02:00
|
|
|
"UNSTABLE_VERSION" -> version.value
|
|
|
|
)
|
|
|
|
|
2019-07-11 12:06:49 +02:00
|
|
|
// this expoes the values below as typed values in Scala sources
|
|
|
|
enablePlugins(BuildInfoPlugin)
|
2019-07-03 16:04:17 +02:00
|
|
|
buildInfoKeys := Seq[BuildInfoKey](mdocVariables, mdocExtraArguments)
|
|
|
|
buildInfoPackage := "org.bitcoins.docs"
|
|
|
|
|
|
|
|
// Mdoc end
|
|
|
|
///////
|
|
|
|
|
Somewhat dirty standalone server and CLI binary (#558)
* PoC bitcoin-s-cli
* Add CLI, Server sbt projects, remove Ammonite
In this commit we set up sbt configuration for
CLI, Server (in-work-name) and corresponding
test projects.
We also remove Ammonite shell from sbt, as that
isn't really being used. bloop console offers
the same functionality way more ergonimic.
* Move BitcoinSAppConfig into new server project
Server project depends on node, chain wand wallet
so this is a good time for introducing this class
into main sources. We also introduce
BitcoinSTestAppConfig in testkit, to replace the
functionality in BitcoinSAppConfig related to
tests.
* Type chain in blockchainresult
* MVP server setup for node, chain and wallet
* Extremely dirty CLI for interacting with server
* initial attempt at mimicking Bitcoin Core API
* WalletStorage: add method for checking for seed existance
* Check for seed existance on wallet startup
* Fix bug where MnemonicNotFound was not an error
* Segregate confirmed and unconfirmed balance methods
* Add error handling, improve formatting of CLI output
* Tweak build
Bump Sttp version, downgrade to uPickle 2.11 compat,
skip publish in cli-test and server-test
* Add CLI, server and picklers to root project
2019-07-10 13:33:17 +02:00
|
|
|
Test / bloopGenerate := None
|
|
|
|
Compile / bloopGenerate := None
|
|
|
|
|
2020-05-29 13:21:56 +02:00
|
|
|
//https://stackoverflow.com/questions/26940253/in-sbt-how-do-you-override-scalacoptions-for-console-in-all-configurations
|
2021-04-06 13:01:11 +02:00
|
|
|
Compile / scalacOptions ~= (_.filterNot(s => s == "-Xfatal-warnings"))
|