Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Nov 26, 2024
1 parent c23e4f5 commit 6ab34d0
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

organization := "com.github.sbt"

name := "sbt-jdi-tools"

enablePlugins(SbtPlugin)
Expand All @@ -9,8 +8,21 @@ licenses += (
"Apache-2.0",
url("https://www.apache.org/licenses/LICENSE-2.0.html")
)

homepage := Some(url("https://github.com/sbt/sbt-jdi-tools"))
developers := List(
Developer(
"senkwich",
"Chip Senkbeil",
"[email protected]",
url("http://www.chipsenkbeil.org")
),
Developer(
"adpi2",
"Adrien Piquerez",
"[email protected]",
url("https://github.com/adpi2/")
)
)

val scala212 = "2.12.20"
val scala3 = "3.3.4"
Expand Down Expand Up @@ -40,40 +52,15 @@ javacOptions ++= Seq(
"-Xlint:-options", "-Xlint:-path", "-Xlint:-processing"
)

scalacOptions in (Compile, doc) ++= Seq(
Compile / doc / scalacOptions ++= Seq(
"-no-link-warnings" // Suppress problems with Scaladoc @throws links
)

// Properly handle Scaladoc mappings
autoAPIMappings := true

// Prevent publishing test artifacts
publishArtifact in Test := false

publishMavenStyle := true

pomIncludeRepository := { _ => false }

pomExtra :=
<scm>
<url>git@github.com:ensime/sbt-jdi-tools.git</url>
<connection>scm:git:git@github.com:ensime/sbt-jdi-tools.git</connection>
</scm>
<developers>
<developer>
<id>senkwich</id>
<name>Chip Senkbeil</name>
<url>http://www.chipsenkbeil.org</url>
</developer>
</developers>

publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
Test / publishArtifact := false

ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Expand Down

0 comments on commit 6ab34d0

Please sign in to comment.