Skip to content

Commit 58e2a6e

Browse files
authored
added maven publishing and pushed version to 1.0.0 for publishing (#10)
* added maven publishing and pushed version to 1.0.0 for publishing * added description
1 parent 8294faf commit 58e2a6e

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*/
1616
val projectName = "spark-input-sources"
17-
val projectVersion = "0.1.2"
17+
val projectVersion = "1.0.0"
1818

1919
lazy val sparkVersion = "3.3.0"
2020
lazy val scalatestVersion = "3.2.14"

project/plugins.sbt

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

publish.sbt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2023 GrowingInTech.com. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
5+
* use this file except in compliance with the License. A copy of the License
6+
* is located at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed on
11+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*
15+
*/
16+
ThisBuild / organization := "com.growingintech"
17+
ThisBuild / organizationName := "growingintech"
18+
ThisBuild / organizationHomepage := Some(url("https://growingintech.com"))
19+
20+
ThisBuild / scmInfo := Some(
21+
ScmInfo(
22+
url("https://github.com/GrowingInTech/spark-input-sources"),
23+
"scm:[email protected]/spark-input-sources.git"
24+
)
25+
)
26+
27+
ThisBuild / developers := List(
28+
Developer(
29+
id = "dwsmith1983",
30+
name = "Dustin Smith",
31+
email = "[email protected]",
32+
url = url("https://dustinsmith.info")
33+
)
34+
)
35+
36+
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"))
38+
ThisBuild / homepage := Some(url("https://github.com/GrowingInTech/spark-input-sources"))
39+
40+
// Remove all additional repository other than Maven Central from POM
41+
ThisBuild / pomIncludeRepository := { _ => false }
42+
43+
ThisBuild / publishTo := {
44+
val nexus = "https://s01.oss.sonatype.org/"
45+
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
46+
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
47+
}
48+
49+
ThisBuild / publishMavenStyle := true
50+
51+
ThisBuild / versionScheme := Some("early-semver")

0 commit comments

Comments
 (0)