Skip to content

Commit dc1a049

Browse files
benedekiZejnilovic
andauthored
#47: Switch release plugin (#49)
* fixing publish settings --------- Co-authored-by: Saša Zejnilović <[email protected]>
1 parent f7d9746 commit dc1a049

File tree

4 files changed

+6
-33
lines changed

4 files changed

+6
-33
lines changed

build.sbt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import Dependencies._
1818
import com.github.sbt.jacoco.report.JacocoReportSettings
1919

20-
ThisBuild / name := "fa-db"
2120
ThisBuild / organization := "za.co.absa.fa-db"
2221

2322
lazy val scala211 = "2.11.12"
@@ -26,7 +25,7 @@ lazy val scala212 = "2.12.17"
2625
ThisBuild / scalaVersion := scala211
2726
ThisBuild / crossScalaVersions := Seq(scala211, scala212)
2827

29-
ThisBuild/resolvers += Resolver.mavenLocal + "Local Maven" at Path.userHome.asFile.toURI.toURL + ".m2/repository"
28+
ThisBuild / versionScheme := Some("early-semver")
3029

3130
lazy val printScalaVersion = taskKey[Unit]("Print Scala versions faDB is being built for.")
3231
lazy val commonJavacOptions = Seq("-source", "1.8", "-target", "1.8", "-Xlint")
@@ -42,7 +41,6 @@ lazy val commonJacocoReportSettings: JacocoReportSettings = JacocoReportSettings
4241
formats = Seq(JacocoReportFormats.HTML, JacocoReportFormats.XML)
4342
)
4443

45-
4644
/**
4745
* add `za.co.absa.fadb.naming.NamingConvention` to filter a class
4846
* or `za.co.absa.fadb.naming.NamingConvention*` to filter the class and all related objects

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# limitations under the License.
1515
#
1616

17-
sbt.version=1.5.5
17+
sbt.version=1.6.2

publish.sbt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
ThisBuild / organizationName := "ABSA Group Limited"
1817
ThisBuild / organizationHomepage := Some(url("https://www.absa.africa"))
1918
ThisBuild / scmInfo := Some(
2019
ScmInfo(
@@ -35,17 +34,10 @@ ThisBuild / developers := List(
3534

3635
ThisBuild / homepage := Some(url("https://github.com/AbsaOSS/fa-DB"))
3736
ThisBuild / description := "DB data access via DB functions"
37+
38+
// licenceHeader check:
39+
ThisBuild / organizationName := "ABSA Group Limited"
3840
ThisBuild / startYear := Some(2022)
3941
ThisBuild / licenses += "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")
4042

41-
ThisBuild / pomIncludeRepository := { _ => false }
42-
ThisBuild / publishTo := {
43-
val nexus = "https://oss.sonatype.org/"
44-
if (isSnapshot.value) {
45-
Some("snapshots" at s"${nexus}content/repositories/snapshots")
46-
} else {
47-
Some("releases" at s"${nexus}service/local/staging/deploy/maven2")
48-
}
49-
}
50-
ThisBuild / publishMavenStyle := true
51-
43+
ThisBuild / sonatypeProfileName := "za.co.absa"

version.sbt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)