2020-10-15 17:46:31 +02:00
|
|
|
import sbt.Keys.excludeLintKeys
|
|
|
|
|
2020-06-23 21:34:18 +02:00
|
|
|
import scala.util.Properties
|
|
|
|
|
2021-04-29 16:15:36 +02:00
|
|
|
val scala2_12 = "2.12.13"
|
2021-05-18 00:44:19 +02:00
|
|
|
val scala2_13 = "2.13.6"
|
2018-11-28 20:16:03 +01:00
|
|
|
|
2021-04-06 13:01:11 +02:00
|
|
|
ThisBuild / scalafmtOnCompile := !Properties.envOrNone("CI").contains("true")
|
2020-06-23 21:34:18 +02:00
|
|
|
|
2021-04-06 13:01:11 +02:00
|
|
|
ThisBuild / scalaVersion := scala2_13
|
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
|
|
|
|
2021-04-06 13:01:11 +02:00
|
|
|
ThisBuild / crossScalaVersions := List(scala2_13, scala2_12)
|
2020-10-15 17:46:31 +02:00
|
|
|
|
|
|
|
//https://github.com/sbt/sbt/pull/5153
|
|
|
|
//https://github.com/bitcoin-s/bitcoin-s/pull/2194
|
2021-04-06 13:01:11 +02:00
|
|
|
Global / excludeLintKeys ++= Set(
|
2020-10-15 17:46:31 +02:00
|
|
|
com.typesafe.sbt.packager.Keys.maintainer,
|
|
|
|
Keys.mainClass,
|
|
|
|
com.typesafe.sbt.SbtGit.GitKeys.gitRemoteRepo
|
|
|
|
)
|
2021-02-18 19:41:42 +01:00
|
|
|
|
|
|
|
//needed so that we can use our versions with docker
|
|
|
|
//see: https://github.com/dwijnand/sbt-dynver#portable-version-strings
|
|
|
|
//https://github.com/bitcoin-s/bitcoin-s/issues/2672
|
2021-04-06 13:01:11 +02:00
|
|
|
ThisBuild / dynverSeparator := "-"
|