Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ ThisBuild / organization := "com.phasmidsoftware"

name := "TableParser"

ThisBuild / version := "1.2.2"
ThisBuild / version := "1.2.3"

ThisBuild / scalaVersion := "2.13.16"
scalaVersion := "2.13.16"

scalacOptions ++= Seq("-encoding", "UTF-8", "-unchecked", "-deprecation", "-Ywarn-dead-code", "-Ywarn-value-discard", "-Ywarn-unused")

lazy val core = project

Expand All @@ -18,10 +20,6 @@ lazy val root = (project in file(".")).aggregate(core, cats, zio, spark)

Test / parallelExecution := false

//javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:+CMSClassUnloadingEnabled")

scalacOptions += "-deprecation"

// NOTE: if you reinstate these directories, you will need to manage the large crimes file (see code).
//Test / unmanagedSourceDirectories += baseDirectory.value / "src/it/scala"
//Test / unmanagedResourceDirectories += baseDirectory.value / "src/it/resources"
Expand Down
2 changes: 2 additions & 0 deletions cats/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name := "tableparser-cats"

scalaVersion := "2.13.16"

//Compile / doc / scalacOptions ++= Seq("-implicits", "-deprecation", "-Ywarn-dead-code", "-Ywarn-value-discard", "-Ywarn-unused")

lazy val scalaModules = "org.scala-lang.modules"
Expand Down
4 changes: 3 additions & 1 deletion core/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name := "tableparser-core"

scalaVersion := "2.13.16"

//Compile / doc / scalacOptions ++= Seq("-Vimplicits", "-deprecation", "-Ywarn-dead-code", "-Ywarn-value-discard", "-Ywarn-unused")

lazy val scalaModules = "org.scala-lang.modules"
Expand All @@ -11,7 +13,7 @@ lazy val nScalaTimeVersion = "2.32.0"
lazy val tsecVersion = "0.4.0"

libraryDependencies ++= Seq(
"com.phasmidsoftware" %% "flog" % "1.0.10",
"com.phasmidsoftware" %% "flog" % "1.0.8",
"io.spray" %% "spray-json" % "1.3.6",
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.2.0",
//noinspection SbtDependencyVersionInspection
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
# Copyright (c) 2019. Phasmid Software
#
sbt.version=1.9.9
sbt.version=1.11.6
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
// CONSIDER removing this plugin, as its functionality is now built into sbt
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.11.3")

53 changes: 34 additions & 19 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -1,31 +1,46 @@
ThisBuild / organization := "com.phasmidsoftware"
// Optional but useful
ThisBuild / description := "Scala library to process tabular data, for example, CSV files"
ThisBuild / homepage := Some(url("https://github.com/rchillyard/TableParser"))
ThisBuild / organizationName := "Phasmid Software"
ThisBuild / organizationHomepage := Some(url("https://phasmidsoftware.com/"))

// Publishing configuration
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}
ThisBuild / publishMavenStyle := true

// Credentials
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")

// Required POM metadata for Maven Central
ThisBuild / licenses := List("Apache-2.0" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/rchillyard/TableParser"),
"scm:[email protected]:rchillyard/TableParser.git"
)
)
ThisBuild / developers := List(
)
ThisBuild / developers := List(
Developer(
id = "rchillyard",
name = "Robin Hillyard",
email = "[email protected]",
url = url("https://phasmidsoftware.com")
)
id = "rchillyard",
name = "Robin Hillyard",
email = "[email protected]",
url = url("https://phasmidsoftware.com")
)
)

// Optional

// Publishing settings
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)
ThisBuild / publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)

ThisBuild / description := "This project is a Scala library for facilitate comparisons in a functional style."
ThisBuild / licenses := List("Apache-2.0" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/rchillyard/TableParser"))
// Optional: Skip publishing of docs and sources for snapshot versions
ThisBuild / publishArtifact := true

// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / 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")
}
ThisBuild / publishMavenStyle := true
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
2 changes: 2 additions & 0 deletions spark/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name := "tableparser-spark"

scalaVersion := "2.13.16"

//Compile / doc / scalacOptions ++= Seq("-Vimplicits", "-deprecation", "-Ywarn-dead-code", "-Ywarn-value-discard", "-Ywarn-unused")

lazy val scalaModules = "org.scala-lang.modules"
Expand Down
2 changes: 2 additions & 0 deletions zio/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name := "tableparser-zio"

scalaVersion := "2.13.16"

//Compile / doc / scalacOptions ++= Seq("-implicits", "-deprecation", "-Ywarn-dead-code", "-Ywarn-value-discard", "-Ywarn-unused")

lazy val scalaModules = "org.scala-lang.modules"
Expand Down