Skip to content

Commit 4e0e247

Browse files
configure central snapshots due to failure
1 parent 7dffd60 commit 4e0e247

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.sbt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ inThisBuild(
3737
organization := "org.flinkextended",
3838
description := "Community-maintained fork of official Apache Flink Scala API",
3939
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
40-
homepage := Some(url("https://github.com/flink-extended/flink-scala-api"))
40+
homepage := Some(url("https://github.com/flink-extended/flink-scala-api")),
41+
// new setting for the Central Portal
42+
publishTo := {
43+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
44+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
45+
else localStaging.value
46+
}
4147
)
4248
)
4349

@@ -74,7 +80,7 @@ lazy val commonSettings = Seq(
7480
val Some((major, _)) = CrossVersion.partialVersion(scalaVersion.value)
7581
file(s"$dir-$major")
7682
},
77-
scalacOptions ++= Seq (
83+
scalacOptions ++= Seq(
7884
"-deprecation",
7985
"-feature",
8086
"-language:higherKinds",

0 commit comments

Comments
 (0)