diff --git a/README.md b/README.md index 1d5f41ac..84f50474 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,6 @@ check out the [examples](examples/src/main/scala). ## Using DimWit as a Library -**Note**: DimWit is currently in early development (`0.1.0-SNAPSHOT`). Snapshots are published to the Sonatype Central snapshot repository. - ### Requirements - Scala **3.8** or newer @@ -80,9 +78,8 @@ lazy val myProject = (project in file(".")) .settings( name := "my-project", libraryDependencies ++= Seq( - "ch.contrafactus" %% "dimwit-core" % "0.1.0-SNAPSHOT" + "ch.contrafactus" %% "dimwit-core" % "0.1.0" ), - resolvers += Resolver.sonatypeCentralSnapshots, fork := true ) ``` diff --git a/build.sbt b/build.sbt index 55504627..fb813c77 100644 --- a/build.sbt +++ b/build.sbt @@ -1,7 +1,7 @@ import ai.kien.python.Python import scala.sys.process._ -ThisBuild / version := "0.1.0-SNAPSHOT" +ThisBuild / version := "0.1.0" ThisBuild / scalaVersion := "3.8.1" ThisBuild / organization := "ch.contrafactus" @@ -52,10 +52,16 @@ ThisBuild / scalafixDependencies += addCommandAlias("testAndCoverage", "; clean; coverage; test; coverageReport") +// alias for uploading core to Sonatype Central +addCommandAlias("sonaUploadCore", "; project core; sonatypeCentralUpload; project root") + lazy val root = (project in file(".")) .aggregate(core, examples) .settings( - name := "dimwit-root" + name := "dimwit-root", + publish / skip := true, + publishLocal / skip := true, + publishArtifact := false ) lazy val uvPython: String = @@ -98,8 +104,8 @@ lazy val examples = (project in file("examples")) ), fork := true, // Don't publish examples - publish := {}, - publishLocal := {}, + publish / skip := true, + publishLocal / skip := true, publishArtifact := false, scalacOptions ++= commonScalacOptions, scalafmtFailOnErrors := false, diff --git a/mdocs/README.md b/mdocs/README.md index 4c14f770..6dba118c 100644 --- a/mdocs/README.md +++ b/mdocs/README.md @@ -62,8 +62,6 @@ check out the [examples](examples/src/main/scala). ## Using DimWit as a Library -**Note**: DimWit is currently in early development (`0.1.0-SNAPSHOT`). Snapshots are published to the Sonatype Central snapshot repository. - ### Requirements - Scala **3.8** or newer @@ -80,9 +78,8 @@ lazy val myProject = (project in file(".")) .settings( name := "my-project", libraryDependencies ++= Seq( - "ch.contrafactus" %% "dimwit-core" % "0.1.0-SNAPSHOT" + "ch.contrafactus" %% "dimwit-core" % "0.1.0" ), - resolvers += Resolver.sonatypeCentralSnapshots, fork := true ) ```