File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed
src/main/scala/io/iohk/ethereum Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ project/boot/
4
4
project /plugins /project /
5
5
.ensime
6
6
.ensime_cache /
7
+ .bloop
7
8
8
9
# IDE folders
9
10
.idea /
10
11
.metals /
12
+ metals.sbt
11
13
.vscode /
12
14
13
15
# intellij scala worksheet
Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ scalacOptions in (Compile, console) ~= (_.filterNot(
124
124
)
125
125
))
126
126
127
- parallelExecution in Test := false
127
+ Test / parallelExecution := false
128
+
129
+ ThisBuild / turbo := true
128
130
129
131
testOptions in Test += Tests .Argument (" -oDG" )
130
132
@@ -142,11 +144,13 @@ unmanagedResourceDirectories in Compile += baseDirectory.value / "src" / "main"
142
144
(scalastyleConfig in Test ) := baseDirectory.value / " scalastyle-test-config.xml"
143
145
scalastyleSources in Test ++= { (unmanagedSourceDirectories in Integration ).value }
144
146
147
+ // Packaging
148
+ enablePlugins(JavaAppPackaging )
145
149
mainClass in Compile := Some (" io.iohk.ethereum.App" )
146
-
150
+ discoveredMainClasses in Compile := Seq ( " io.iohk.ethereum.mallet.main.Mallet " )
147
151
// Requires the 'ant-javafx.jar' that comes with Oracle JDK
148
152
// Enables creating an executable with the configuration files, has to be run on the OS corresponding to the desired version
149
- jdkPackagerType := " image"
153
+ ThisBuild / jdkPackagerType := " image"
150
154
151
155
Universal / mappings += (resourceDirectory in Compile ).value / " logback.xml" -> " conf/logback.xml"
152
156
@@ -157,6 +161,7 @@ jdkPackagerJVMArgs := Seq(
157
161
" -Xss10M"
158
162
)
159
163
164
+
160
165
coverageExcludedPackages := " io\\ .iohk\\ .ethereum\\ .extvm\\ .msg.*"
161
166
162
167
addCommandAlias(
Original file line number Diff line number Diff line change 1
1
logLevel := sbt.Level .Warn
2
2
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.5.1" )
3
3
addSbtPlugin(" org.scalastyle" %% " scalastyle-sbt-plugin" % " 1.0.0" )
4
- addSbtPlugin(" com.typesafe.sbt" % " sbt-native-packager" % " 1.3.21 " )
4
+ addSbtPlugin(" com.typesafe.sbt" % " sbt-native-packager" % " 1.7.5 " )
5
5
addSbtPlugin(" com.thoughtworks.sbt-api-mappings" % " sbt-api-mappings" % " 2.1.0" )
6
6
addSbtPlugin(" com.thesamet" % " sbt-protoc" % " 0.99.25" )
7
7
addSbtPlugin(" com.timushev.sbt" % " sbt-updates" % " 0.4.2" )
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ trait GenesisDataLoaderBuilder {
536
536
537
537
trait SecureRandomBuilder {
538
538
lazy val secureRandom : SecureRandom =
539
- Config .secureRandomAlgo.map( SecureRandom .getInstance).getOrElse(new SecureRandom ())
539
+ Config .secureRandomAlgo.flatMap(name => Try ( SecureRandom .getInstance(name)).toOption ).getOrElse(new SecureRandom ())
540
540
}
541
541
542
542
/** Provides the basic functionality of a Node, except the consensus algorithm.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package io.iohk.ethereum.utils
3
3
import java .util .concurrent .atomic .AtomicReference
4
4
5
5
/**
6
- * An [[java. util.concurrent.atomic.AtomicReference AtomicReference ]] that can be set once.
6
+ * An [[https://docs.oracle.com/javase/8/docs/api/ java/util/concurrent/atomic/AtomicReference.html java. util.concurrent.atomic.AtomicReference ]] that can be set once.
7
7
*/
8
8
class Ref [T <: AnyRef ] {
9
9
private [this ] final val ref = new AtomicReference [Option [T ]](None )
You can’t perform that action at this time.
0 commit comments