Skip to content

Commit

Permalink
Add configuration for Sonatype
Browse files Browse the repository at this point in the history
Update config and release configurations to release to sonatype / maven central repository instead of jfrog
  • Loading branch information
Brian Pritchett committed Apr 7, 2021
1 parent 81e06da commit a23da16
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
27 changes: 26 additions & 1 deletion build.sbt
@@ -1,4 +1,4 @@
organization := "com.cibo"
organization := "io.github.cibotech"
name := "scalastan"

homepage := Some(url("https://github.com/cibotech/ScalaStan"))
Expand All @@ -12,6 +12,30 @@ organizationHomepage := Some(url("https://www.cibotechnologies.com"))
crossScalaVersions := Seq("2.12.12")
scalaVersion := crossScalaVersions.value.head

developers := List(
Developer(
id = "CiBO",
name = "CiBO Technologies",
email = "devops@cibotechnologies.com",
url = url("https://www.cibotechnologies.com")
)
)

scmInfo := Some(
ScmInfo(
url("https://github.com/cibotech/scalastan"),
"scm:git@github.com:cibotech/scalastan.git"
)
)

pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true

scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-target:jvm-1.8")

fork := true
Expand All @@ -30,3 +54,4 @@ libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % "test,it",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test,it"
)

2 changes: 1 addition & 1 deletion project/build.properties
@@ -1 +1 @@
sbt.version=1.3.13
sbt.version=1.5.0
5 changes: 1 addition & 4 deletions release.sbt
Expand Up @@ -11,11 +11,8 @@ releaseProcess := Seq[ReleaseStep](
publishArtifacts,
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)

releaseCrossBuild := true

bintrayOrganization := Some("cibotech")
bintrayRepository := "public"
bintrayPackageLabels := Seq("scala", "stan")

0 comments on commit a23da16

Please sign in to comment.