@@ -12,10 +12,24 @@ val nixBuild = sys.props.isDefinedAt("nix")
1212// Enable dev mode: disable certain flags, etc.
1313val mantisDev = sys.props.get(" mantisDev" ).contains(" true" ) || sys.env.get(" MANTIS_DEV" ).contains(" true" )
1414
15+ // Releasing. https://github.com/olafurpg/sbt-ci-release
16+ inThisBuild(List (
17+ organization := " io.iohk" ,
18+ homepage := Some (url(" https://github.com/input-output-hk/mantis" )),
19+ scmInfo
:= Some (
ScmInfo (url(
" https://github.com/input-output-hk/mantis" ),
" [email protected] :input-output-hk/mantis.git" )),
20+ licenses := List (" Apache-2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )),
21+ developers := List ()
22+ ))
23+
24+ // https://github.com/sbt/sbt/issues/3570
25+ updateOptions := updateOptions.value.withGigahorse(false )
26+
27+ // artifact name will include scala version
28+ crossPaths := true
29+
1530def commonSettings (projectName : String ): Seq [sbt.Def .Setting [_]] = Seq (
1631 name := projectName,
1732 organization := " io.iohk" ,
18- version := " 3.2.1" ,
1933 scalaVersion := " 2.13.4" ,
2034 // Scalanet snapshots are published to Sonatype after each build.
2135 resolvers += " Sonatype OSS Snapshots" at " https://oss.sonatype.org/content/repositories/snapshots" ,
@@ -38,7 +52,9 @@ def commonSettings(projectName: String): Seq[sbt.Def.Setting[_]] = Seq(
3852 scalacOptions ~= (options => if (mantisDev) options.filterNot(_ == " -Xfatal-warnings" ) else options),
3953 Test / parallelExecution := true ,
4054 testOptions in Test += Tests .Argument (" -oDG" ),
41- (scalastyleConfig in Test ) := file(" scalastyle-test-config.xml" )
55+ (scalastyleConfig in Test ) := file(" scalastyle-test-config.xml" ),
56+ // Only publish selected libraries.
57+ skip in publish := true
4258)
4359
4460// Adding an "it" config because in `Dependencies.scala` some are declared with `% "it,test"`
@@ -66,6 +82,7 @@ lazy val crypto = {
6682 .dependsOn(bytes)
6783 .settings(commonSettings(" mantis-crypto" ))
6884 .settings(
85+ publish / skip := false ,
6986 libraryDependencies ++=
7087 Dependencies .akkaUtil ++
7188 Dependencies .crypto ++
@@ -82,6 +99,7 @@ lazy val rlp = {
8299 .dependsOn(bytes)
83100 .settings(commonSettings(" mantis-rlp" ))
84101 .settings(
102+ publish / skip := false ,
85103 libraryDependencies ++=
86104 Dependencies .akkaUtil ++
87105 Dependencies .shapeless ++
0 commit comments