Skip to content

Commit 352d15d

Browse files
authored
fixed sbt and plugins for maven publishing (#11)
1 parent 58e2a6e commit 352d15d

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

build.sbt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ val projectVersion = "1.0.0"
1919
lazy val sparkVersion = "3.3.0"
2020
lazy val scalatestVersion = "3.2.14"
2121

22-
// https://github.com/djspiewak/sbt-github-packages/issues/24
23-
githubTokenSource := TokenSource.GitConfig("github.token") || TokenSource.Environment("GITHUB_TOKEN")
24-
2522
lazy val commonSettings = Seq(
2623
organization := "com.growingintech",
2724
scalaVersion := "2.12.15",
@@ -53,10 +50,3 @@ lazy val root = (project in file("."))
5350
)
5451
}
5552
)
56-
57-
resolvers += Resolver.githubPackages("GrowingInTech", projectName)
58-
githubOwner := "GrowingInTech"
59-
githubRepository := projectName
60-
publishMavenStyle := true
61-
//
62-
// publishTo := githubPublishTo.value

project/plugins.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
22
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
3-
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
4-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.17")
54
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

publish.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ ThisBuild / developers := List(
3434
)
3535

3636
ThisBuild / description := "Input Sources is an abstraction for loading Spark data via configuration files."
37-
ThisBuild / licenses := List("The license" -> new URL("http://www.apache.org/licenses/LICENSE-2.0"))
37+
ThisBuild / licenses := List(
38+
"Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0")
39+
)
3840
ThisBuild / homepage := Some(url("https://github.com/GrowingInTech/spark-input-sources"))
3941

4042
// Remove all additional repository other than Maven Central from POM

0 commit comments

Comments
 (0)