Skip to content

Commit 80c8bae

Browse files
authored
Merge pull request #474 from codacy/fix-sonatype
fix: Trying to fix sonatype publishing for s01.oss.sonatype.org
2 parents 8d412b2 + eb4c4d2 commit 80c8bae

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ val sonatypeInformation = Seq(
3131
scmInfo := Some(
3232
ScmInfo(
3333
url("https://github.com/codacy/codacy-analysis-cli"),
34-
"scm:git:[email protected]:codacy/codacy-analysis-cli.git"))) ++ publicMvnPublish
34+
"scm:git:[email protected]:codacy/codacy-analysis-cli.git")))
3535

3636
lazy val codacyAnalysisCore = project
3737
.in(file("core"))
@@ -87,7 +87,6 @@ lazy val codacyAnalysisModels = project
8787
crossScalaVersions := Common.supportedScalaVersions,
8888
name := "codacy-analysis-cli-model",
8989
Common.genericSettings,
90-
publishTo := sonatypePublishToBundle.value,
9190
libraryDependencies ++=
9291
Dependencies.circe ++ Seq(Dependencies.pluginsApi) ++ Dependencies.specs2,
9392
description := "Library with analysis models")

project/Common.scala

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import codacy.CodacySbt.autoImport.publicMvnPublish
12
import com.typesafe.sbt.packager.Keys._
23
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport.Docker
34
import com.typesafe.sbt.packager.docker.{Cmd, CmdLike, DockerAlias}
@@ -17,18 +18,11 @@ object Common {
1718
lazy val supportedScalaVersions = List(Common.scalaVersionNumber, Common.scala213VersionNumber)
1819

1920
val genericSettings = Seq(
20-
//Credentials for sonatype
21-
credentials += Credentials(
22-
"Sonatype Nexus Repository Manager",
23-
"oss.sonatype.org",
24-
sys.env.getOrElse("SONATYPE_USER", "username"),
25-
sys.env.getOrElse("SONATYPE_PASSWORD", "password")),
26-
organization := "com.codacy",
2721
scalacOptions ++= Common.compilerFlags(scalaVersion.value),
2822
Test / scalacOptions += "-Yrangepos",
2923
Compile / console / scalacOptions --= Seq("-Ywarn-unused", "-Ywarn-unused:imports"),
3024
scalacOptions -= "-Xfatal-warnings",
31-
Compile / doc / sources := Seq.empty)
25+
Compile / doc / sources := Seq.empty) ++ publicMvnPublish
3226

3327
val compilerFlagsDefault: Seq[String] = Seq(
3428
"-deprecation", // Emit warning and location for usages of deprecated APIs.

0 commit comments

Comments
 (0)