Skip to content

Commit

Permalink
Update Sonatype publishing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Nov 8, 2019
1 parent fff2082 commit 0fc30e5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ sudo: false

language: scala
scala:
- 2.12.8
- 2.12.10

jdk:
- oraclejdk8
- openjdk11

install: true

Expand Down
7 changes: 0 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,4 @@ publishArtifact in(Test, packageSrc) := false

shellPrompt in ThisBuild := { state => "sbt:"+Project.extract(state).currentRef.project + "> " }

publishTo := version {
version: String =>
if (version.contains("-SNAPSHOT"))
Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("Sonatype Nexus Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}.value

18 changes: 17 additions & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
sbt.version=1.2.8
#
# Copyright 2014-2019 Jarek Sacha (jpsacha -at- gmail.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

sbt.version=1.3.3
2 changes: 1 addition & 1 deletion project/sbt-sonatype.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [https://github.com/xerial/sbt-sonatype]
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")
// [https://github.com/sbt/sbt-pgp]
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")
22 changes: 10 additions & 12 deletions sonatype.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
// Configuration for sbt-sonatype plugin

pomExtra :=
<scm>
<url>git@github.com:jpsacha/sbt-install4j.git</url>
<connection>scm:git@github.com:jpsacha/sbt-install4j.git</connection>
</scm>
<developers>
<developer>
<id>jpsacha</id>
<name>Jarek Sacha</name>
<url>https://github.com/jpsacha</url>
</developer>
</developers>
import xerial.sbt.Sonatype.GitHubHosting

sonatypeProfileName := "com.github.jpsacha"
sonatypeProjectHosting := Some(GitHubHosting("jpsacha", "sbt-install4j", "[email protected]"))

publishTo := sonatypePublishTo.value

developers := List(
Developer(id = "jpsacha", name = "Jarek Sacha", email = "[email protected]", url = url("https://github.com/jpsacha"))
)

0 comments on commit 0fc30e5

Please sign in to comment.