Skip to content

Commit

Permalink
Merge pull request #8 from moatom/master
Browse files Browse the repository at this point in the history
Publish to the sonatype repository
  • Loading branch information
moatom authored Jan 3, 2025
2 parents f54742f + ff193d4 commit 51f32d6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
39 changes: 30 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
val scala3Version = "3.2.0"
import xerial.sbt.Sonatype._

val scala3Version = "3.3.4"


lazy val root = project
.in(file("."))
.settings(
organization := "io.github.strymonas",
name := "strymonas",
version := "0.1.0",

// Use sbt-dynver for `version`
// version := "",
scalaVersion := scala3Version,
homepage := Some(
url(
"https://strymonas.github.io/"
)
),
licenses += License.MIT,
description := "Fast streams for Scala 3",
sonatypeProjectHosting := Some(GitHubHosting("strymonas", "strymonas-scala", "[email protected]")),
publishTo := sonatypePublishToBundle.value,
sonatypeCredentialHost := sonatypeCentralHost,

scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint:all",
),

libraryDependencies ++= Seq(
"org.scala-lang" %% "scala3-staging" % scala3Version,
Expand All @@ -18,17 +39,17 @@ lazy val bench = project
.in(file("bench"))
.dependsOn(root)
.settings(
organization := "io.github.strymonas",
name := "strymonas-bench",
version := "0.1.0",

scalaVersion := scala3Version,

libraryDependencies ++= Seq(
"org.scala-lang" %% "scala3-staging" % scala3Version
),

javaOptions ++= Seq("-Xms6g", "-Xmx6g", "-Xss4m",
"-XX:ReservedCodeCacheSize=256m",
"-XX:-TieredCompilation", "-XX:+UseNUMA"
),

libraryDependencies ++= Seq(
"org.scala-lang" %% "scala3-staging" % scala3Version
)
).enablePlugins(JmhPlugin)
).enablePlugins(JmhPlugin)
5 changes: 4 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")

0 comments on commit 51f32d6

Please sign in to comment.