-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
259 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,63 @@ | ||
organization := "de.bitmarck.bms" | ||
name := "base32check-java" | ||
version := "0.0.2-SNAPSHOT" | ||
ThisBuild / scalaVersion := "2.13.10" | ||
ThisBuild / autoScalaLibrary := false | ||
ThisBuild / crossPaths := false | ||
ThisBuild / versionScheme := Some("early-semver") | ||
ThisBuild / organization := "de.bitmarck.bms" | ||
name := (root / name).value | ||
|
||
val V = new { | ||
val logbackClassic = "1.4.6" | ||
val munit = "0.7.29" | ||
} | ||
|
||
javacOptions ++= Seq( | ||
"-source", "1.8", | ||
"-target", "1.8" | ||
lazy val commonSettings: SettingsDefinition = Def.settings( | ||
version := { | ||
val Tag = "refs/tags/v?([0-9]+(?:\\.[0-9]+)+(?:[+-].*)?)".r | ||
sys.env.get("CI_VERSION").collect { case Tag(tag) => tag } | ||
.getOrElse("0.0.1-SNAPSHOT") | ||
}, | ||
|
||
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")), | ||
|
||
homepage := Some(url("https://base32check.org")), | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/bitmarck-service/base32check-java"), | ||
"scm:git@github.com:bitmarck-service/base32check-java.git" | ||
) | ||
), | ||
developers := List( | ||
Developer(id = "u016595", name = "Pierre Kisters", email = "pierre.kisters@bitmarck.de", url = url("https://github.com/lhns/")) | ||
), | ||
|
||
libraryDependencies ++= Seq( | ||
"ch.qos.logback" % "logback-classic" % V.logbackClassic % Test, | ||
"org.scalameta" %% "munit" % V.munit % Test, | ||
), | ||
|
||
testFrameworks += new TestFramework("munit.Framework"), | ||
|
||
Compile / doc / sources := Seq.empty, | ||
|
||
publishMavenStyle := true, | ||
|
||
publishTo := sonatypePublishToBundle.value, | ||
|
||
sonatypeCredentialHost := "oss.sonatype.org", | ||
|
||
credentials ++= (for { | ||
username <- sys.env.get("SONATYPE_USERNAME") | ||
password <- sys.env.get("SONATYPE_PASSWORD") | ||
} yield Credentials( | ||
"Sonatype Nexus Repository Manager", | ||
sonatypeCredentialHost.value, | ||
username, | ||
password | ||
)).toList | ||
) | ||
|
||
scalaVersion := "2.13.4" | ||
autoScalaLibrary := false | ||
crossPaths := false | ||
|
||
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")) | ||
|
||
homepage := Some(url("https://base32check.org")) | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/bitmarck-service/base32check-scala"), | ||
"scm:git@github.com:bitmarck-service/base32check-scala.git" | ||
lazy val root: Project = project.in(file(".")) | ||
.settings(commonSettings) | ||
.settings( | ||
name := "base32check-java" | ||
) | ||
) | ||
developers := List( | ||
Developer(id = "u016595", name = "Pierre Kisters", email = "pierre.kisters@bitmarck.de", url = url("https://github.com/lhns/")) | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % Test, | ||
"org.scalatest" %% "scalatest" % "3.2.15" % Test, | ||
) | ||
|
||
|
||
Compile / doc / sources := Seq.empty | ||
|
||
version := { | ||
val tagPrefix = "refs/tags/" | ||
sys.env.get("CI_VERSION").filter(_.startsWith(tagPrefix)).map(_.drop(tagPrefix.length)).getOrElse(version.value) | ||
} | ||
|
||
publishMavenStyle := true | ||
|
||
publishTo := sonatypePublishToBundle.value | ||
|
||
credentials ++= (for { | ||
username <- sys.env.get("SONATYPE_USERNAME") | ||
password <- sys.env.get("SONATYPE_PASSWORD") | ||
} yield Credentials( | ||
"Sonatype Nexus Repository Manager", | ||
"oss.sonatype.org", | ||
username, | ||
password | ||
)).toList |
Oops, something went wrong.