Skip to content

Commit

Permalink
Add artifact publishing setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Mar 5, 2019
1 parent c8a25d2 commit 883daf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
34 changes: 19 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import sbt.Keys.version
import java.net.URL

import sbt.Keys.{licenses, startYear, version}
// @formatter:off

name := "ijp-debayer2sx"
Expand All @@ -11,6 +13,9 @@ scalaVersion := _scalaVersion
publishArtifact := false

val commonSettings = Seq(
homepage := Some(new URL("https://github.com/ij-plugins/ijp-DeBayer2SX")),
startYear := Some(2018),
licenses := Seq(("LGPL-2.1", new URL("http://opensource.org/licenses/LGPL-2.1"))),
organization := "net.sf.ij-plugins",
version := _version,
scalaVersion := _scalaVersion,
Expand Down Expand Up @@ -40,7 +45,19 @@ val commonSettings = Seq(
fork := true,
//
manifestSetting,
publishSetting
publishSetting,
pomExtra :=
<scm>
<url>https://github.com/ij-plugins/ijp-DeBayer2SX</url>
<connection>scm:https://github.com/ij-plugins/ijp-DeBayer2SX.git</connection>
</scm>
<developers>
<developer>
<id>jpsacha</id>
<name>Jarek Sacha</name>
<url>https://github.com/jpsacha</url>
</developer>
</developers>
)

// Resolvers
Expand Down Expand Up @@ -100,16 +117,3 @@ lazy val manifestSetting = packageOptions += {
"Implementation-Vendor" -> organization.value
)
}

pomExtra :=
<scm>
<url>https://github.com/ij-plugins/ijp-DeBayer2SX</url>
<connection>scm:https://github.com/ij-plugins/ijp-DeBayer2SX.git</connection>
</scm>
<developers>
<developer>
<id>jpsacha</id>
<name>Jarek Sacha</name>
<url>https://github.com/jpsacha</url>
</developer>
</developers>
3 changes: 3 additions & 0 deletions project/sbt-sonatype.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// [https://github.com/xerial/sbt-sonatype]
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.4")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")

0 comments on commit 883daf8

Please sign in to comment.