Skip to content

Commit

Permalink
Update sbt & plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtung committed Jul 22, 2021
1 parent 78cfcbd commit b6d4420
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 38 deletions.
35 changes: 1 addition & 34 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,49 +1,16 @@
name := "latex2unicode"

organization := "com.github.tomtung"

version := "0.2.7"

scalaVersion := "2.12.14"

crossScalaVersions := Seq("2.11.12", "2.12.14")

licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))

homepage := Some(url("https://github.com/tomtung/latex2unicode"))

pomIncludeRepository := { _ => false }

libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "1.0.0",
"org.scalatest" %% "scalatest" % "3.2.9" % "test"
)

publishMavenStyle := true

publishArtifact in Test := false

publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

pomExtra := (
<scm>
<url>git@github.com:tomtung/latex2unicode.git</url>
<connection>scm:git:git@github.com:tomtung/latex2unicode.git</connection>
</scm>
<developers>
<developer>
<id>tomtung</id>
<name>Tom Dong</name>
<url>http://tomtung.com</url>
</developer>
</developers>)

packageOptions in (Compile, packageBin) += Package.ManifestAttributes(
Compile / packageBin / packageOptions += Package.ManifestAttributes(
"Automatic-Module-Name" -> "com.github.tomtung.latex2unicode"
)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.13
sbt.version=1.5.5
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0")
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
37 changes: 37 additions & 0 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ThisBuild / versionScheme := Some("early-semver")

ThisBuild / organization := "com.github.tomtung"

ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/tomtung/latex2unicode"),
"scm:git@github.com:tomtung/latex2unicode.git"
)
)

ThisBuild / developers := List(
Developer(
id = "tomtung",
name = "Tom Dong",
email = "tom.tung.dyb@gmail.com",
url = url("https://github.com/tomtung/")
)
)

ThisBuild / description := "Convert LaTeX markup to Unicode."

ThisBuild / licenses := List("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))

ThisBuild / homepage := Some(url("https://github.com/tomtung/latex2unicode"))

ThisBuild / pomIncludeRepository := { _ => false }

ThisBuild / Test / publishArtifact := 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

0 comments on commit b6d4420

Please sign in to comment.