@@ -2,6 +2,7 @@ import sbt.Keys.{homepage, scalaVersion}
2
2
3
3
name := " scrypto"
4
4
description := " Cryptographic primitives for Scala"
5
+ organization := " org.scorexfoundation"
5
6
6
7
lazy val scala213 = " 2.13.8"
7
8
lazy val scala212 = " 2.12.15"
@@ -33,13 +34,14 @@ lazy val commonSettings = Seq(
33
34
),
34
35
libraryDependencies ++= Seq (
35
36
" org.rudogma" %%% " supertagged" % " 2.0-RC2" ,
36
- " org.scorexfoundation" %%% " scorex-util" % " 0.1.8-20-565873cd-SNAPSHOT " ,
37
+ " org.scorexfoundation" %%% " scorex-util" % " 0.2.0 " ,
37
38
" org.scalatest" %%% " scalatest" % " 3.3.0-SNAP3" % Test ,
38
39
" org.scalatest" %%% " scalatest-propspec" % " 3.3.0-SNAP3" % Test ,
39
40
" org.scalatest" %%% " scalatest-shouldmatchers" % " 3.3.0-SNAP3" % Test ,
40
41
" org.scalatestplus" %%% " scalacheck-1-15" % " 3.3.0.0-SNAP3" % Test ,
41
42
" org.scalacheck" %%% " scalacheck" % " 1.15.2" % Test
42
43
),
44
+ javacOptions ++= javacReleaseOption,
43
45
publishMavenStyle := true ,
44
46
publishTo := sonatypePublishToBundle.value
45
47
)
@@ -50,9 +52,15 @@ Test / publishArtifact := false
50
52
51
53
pomIncludeRepository := { _ => false }
52
54
55
+ lazy val noPublishSettings = Seq (
56
+ publish := {},
57
+ publishLocal := {},
58
+ publishArtifact := false
59
+ )
60
+
53
61
lazy val scrypto = crossProject(JVMPlatform , JSPlatform )
54
62
.in(file(" ." ))
55
- .settings(commonSettings : _* )
63
+ .settings(commonSettings)
56
64
.jvmSettings(
57
65
libraryDependencies ++= Seq (
58
66
" org.bouncycastle" % " bcprov-jdk15to18" % " 1.66"
@@ -75,7 +83,7 @@ lazy val scryptoJS = scrypto.js
75
83
// how to setup ScalablyTyped https://youtu.be/hWUAVrNj65c?t=1341
76
84
externalNpm := { file(s " ${baseDirectory.value}/.. " ) },
77
85
Compile / npmDependencies ++= Seq (
78
- " @noble/hashes" -> " ^ 1.1.4"
86
+ " @noble/hashes" -> " 1.1.4"
79
87
),
80
88
useYarn := true
81
89
)
@@ -89,6 +97,15 @@ lazy val benchmarks = project
89
97
scalaVersion := scala213,
90
98
)
91
99
.enablePlugins(JmhPlugin )
100
+ .settings(noPublishSettings)
101
+
102
+ def javacReleaseOption = {
103
+ if (System .getProperty(" java.version" ).startsWith(" 1." ))
104
+ // java <9 "--release" is not supported
105
+ Seq ()
106
+ else
107
+ Seq (" --release" , " 8" )
108
+ }
92
109
93
110
credentials ++= (for {
94
111
username <- Option (System .getenv().get(" SONATYPE_USERNAME" ))
0 commit comments