Skip to content

Commit 9dc9146

Browse files
author
Sheng Ran
committed
Fix sbt publish
1 parent 6bf4d5c commit 9dc9146

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ before_deploy:
2525
- tar xvf .travis/keys.tar
2626
deploy:
2727
provider: script
28-
script: sbt +publishSigned sonatypeReleaseAll
28+
script: sbt +publishSigned "sonatypeReleaseAll com.criteo"
2929
skip_cleanup: true
3030
on:
3131
tags: true

build.sbt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ lazy val commonSettings = Seq(
1111
"criteo-oss",
1212
sys.env.getOrElse("SONATYPE_PASSWORD", "")
1313
),
14+
publishTo := Some(
15+
if (isSnapshot.value)
16+
Opts.resolver.sonatypeSnapshots
17+
else
18+
Opts.resolver.sonatypeStaging
19+
),
1420
pgpPassphrase := sys.env.get("SONATYPE_PASSWORD").map(_.toArray),
1521
pgpSecretRing := file(".travis/secring.gpg"),
1622
pgpPublicRing := file(".travis/pubring.gpg"),
@@ -100,6 +106,7 @@ lazy val root = (project in file("."))
100106
lazy val example = (project in file("example"))
101107
.settings(commonSettings: _*)
102108
.settings(
109+
skip in publish := true,
103110
libraryDependencies ++= Seq(
104111
"org.slf4j" % "slf4j-simple" % "1.7.25"
105112
)

0 commit comments

Comments
 (0)