|
1 | 1 | import java.net.URL
|
2 | 2 |
|
3 | 3 | import sbt.Keys.{licenses, startYear, version}
|
| 4 | +import xerial.sbt.Sonatype.GitHubHosting |
4 | 5 | // @formatter:off
|
5 | 6 |
|
6 | 7 | name := "ijp-debayer2sx"
|
7 | 8 |
|
8 |
| -val _version = "1.0.1" |
9 |
| - |
| 9 | +lazy val _version = "1.0.1" |
10 | 10 | lazy val _scalaVersions = Seq("2.13.1", "2.12.10")
|
11 |
| -lazy val _scalaVersion = _scalaVersions.head |
| 11 | +lazy val _scalaVersion = _scalaVersions.head |
12 | 12 |
|
13 |
| -scalaVersion := _scalaVersion |
| 13 | +version := _version |
| 14 | +scalaVersion := _scalaVersion |
14 | 15 | publishArtifact := false
|
15 | 16 | skip in publish := true
|
| 17 | +sonatypeProfileName := "net.sf.ij-plugins" |
16 | 18 |
|
17 | 19 | val commonSettings = Seq(
|
18 | 20 | homepage := Some(new URL("https://github.com/ij-plugins/ijp-DeBayer2SX")),
|
@@ -50,33 +52,13 @@ val commonSettings = Seq(
|
50 | 52 | fork := true,
|
51 | 53 | //
|
52 | 54 | manifestSetting,
|
53 |
| - publishSetting, |
54 |
| - pomExtra := |
55 |
| - <scm> |
56 |
| - <url>https://github.com/ij-plugins/ijp-DeBayer2SX</url> |
57 |
| - <connection>scm:https://github.com/ij-plugins/ijp-DeBayer2SX.git</connection> |
58 |
| - </scm> |
59 |
| - <developers> |
60 |
| - <developer> |
61 |
| - <id>jpsacha</id> |
62 |
| - <name>Jarek Sacha</name> |
63 |
| - <url>https://github.com/jpsacha</url> |
64 |
| - </developer> |
65 |
| - </developers> |
| 55 | + // Setup publishing |
| 56 | + publishMavenStyle := true, |
| 57 | + sonatypeProfileName := "net.sf.ij-plugins", |
| 58 | + sonatypeProjectHosting := Some( GitHubHosting( "ij-plugins", "ijp-debayer2sx", "[email protected]")), |
| 59 | + publishTo := sonatypePublishTo.value, |
66 | 60 | )
|
67 | 61 |
|
68 |
| -// Resolvers |
69 |
| -lazy val sonatypeNexusSnapshots = Resolver.sonatypeRepo("snapshots") |
70 |
| -lazy val sonatypeNexusStaging = "Sonatype Nexus Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2" |
71 |
| - |
72 |
| -lazy val publishSetting = publishTo := { |
73 |
| - val version: String = _version |
74 |
| - if (version.trim.endsWith("SNAPSHOT")) |
75 |
| - Some(sonatypeNexusSnapshots) |
76 |
| - else |
77 |
| - Some(sonatypeNexusStaging) |
78 |
| -} |
79 |
| - |
80 | 62 | lazy val ijp_debayer2sx_core = project.in(file("ijp-debayer2sx-core"))
|
81 | 63 | .settings(commonSettings,
|
82 | 64 | name := "ijp-debayer2sx-core",
|
|
0 commit comments