-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebrand + move to the Maven Central + cross-build with Scala 2.13 re…
…lease
- Loading branch information
1 parent
ea396cb
commit 5e24e78
Showing
15 changed files
with
65 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,27 +29,27 @@ def mimaSettings = mimaDefaultSettings ++ Seq( | |
) | ||
|
||
lazy val commonSettings = Seq( | ||
organization := "com.sizmek.fsi", | ||
organizationHomepage := Some(url("https://sizmek.com")), | ||
homepage := Some(url("https://github.com/Sizmek/fast-string-interpolator")), | ||
organization := "com.github.plokhotnyuk.fsi", | ||
organizationHomepage := Some(url("https://github.com/plokhotnyuk")), | ||
homepage := Some(url("https://github.com/plokhotnyuk/fast-string-interpolator")), | ||
licenses := Seq(("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))), | ||
startYear := Some(2018), | ||
developers := List( | ||
Developer( | ||
id = "plokhotnyuk", | ||
name = "Andriy Plokhotnyuk", | ||
email = "andriy.plokhotnyuk@sizmek.com", | ||
url = url("https://twitter.com/aplokhotnyuk") | ||
email = "plokhotnyuk@gmail.com", | ||
url = url("https://github.com/aplokhotnyuk") | ||
), | ||
Developer( | ||
id = "AnderEnder", | ||
name = "Andrii Radyk", | ||
email = "andrii.radyk@sizmek.com", | ||
email = "ander.ender@gmail.com", | ||
url = url("https://github.com/AnderEnder") | ||
), | ||
), | ||
scalaVersion := "2.12.8", | ||
resolvers += Resolver.jcenterRepo, | ||
resolvers += "Sonatype OSS Staging" at "https://oss.sonatype.org/content/repositories/staging", | ||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-encoding", "UTF-8", | ||
|
@@ -66,20 +66,16 @@ lazy val commonSettings = Seq( | |
|
||
lazy val noPublishSettings = Seq( | ||
skip in publish := true, | ||
publishArtifact := false, | ||
// Replace tasks to work around https://github.com/sbt/sbt-bintray/issues/93 | ||
bintrayRelease := ((): Unit), | ||
bintrayEnsureBintrayPackageExists := ((): Unit), | ||
bintrayEnsureLicenses := ((): Unit), | ||
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging) | ||
) | ||
|
||
lazy val publishSettings = Seq( | ||
bintrayOrganization := Some("sizmek"), | ||
bintrayRepository := "sizmek-maven", | ||
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging), | ||
sonatypeProfileName := "com.github.plokhotnyuk", | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/Sizmek/fast-string-interpolator"), | ||
"scm:[email protected]:Sizmek/fast-string-interpolator.git" | ||
url("https://github.com/plokhotnyuk/fast-string-interpolator"), | ||
"scm:[email protected]:plokhotnyuk/fast-string-interpolator.git" | ||
) | ||
), | ||
publishConfiguration := { | ||
|
@@ -88,12 +84,7 @@ lazy val publishSettings = Seq( | |
publishConfiguration.value | ||
}, | ||
publishMavenStyle := true, | ||
pomIncludeRepository := { _ => false }, | ||
// FIXME: remove setting of overwrite flag when the following issue will be fixed: https://github.com/sbt/sbt/issues/3725 | ||
publishConfiguration := publishConfiguration.value.withOverwrite(isSnapshot.value), | ||
publishSignedConfiguration := publishSignedConfiguration.value.withOverwrite(isSnapshot.value), | ||
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(isSnapshot.value), | ||
publishLocalSignedConfiguration := publishLocalSignedConfiguration.value.withOverwrite(isSnapshot.value) | ||
pomIncludeRepository := { _ => false } | ||
) | ||
|
||
lazy val `fast-string-interpolator` = project.in(file(".")) | ||
|
@@ -106,11 +97,14 @@ lazy val `fsi-macros` = project | |
.settings(mimaSettings) | ||
.settings(publishSettings) | ||
.settings( | ||
crossScalaVersions := Seq("2.13.0-RC2", "2.13.0-RC1", "2.12.8", "2.11.12"), | ||
libraryDependencies ++= Seq( | ||
"org.scala-lang" % "scala-reflect" % scalaVersion.value, | ||
"org.scalatest" %% "scalatest" % (if (scalaVersion.value == "2.13.0-RC1") "3.0.8-RC3" else "3.0.8-RC5") % Test | ||
) | ||
crossScalaVersions := Seq("2.13.0", "2.12.8", "2.11.12"), | ||
libraryDependencies ++= Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value), | ||
libraryDependencies ++= | ||
(if (scalaVersion.value == "2.13.0") { | ||
Seq("org.scalatest" % "scalatest_2.13.0-RC3" % "3.0.8-RC5" % Test) | ||
} else { | ||
Seq("org.scalatest" %% "scalatest" % "3.0.8-RC5" % Test) | ||
}) | ||
) | ||
|
||
lazy val `fsi-benchmark-core` = project | ||
|
@@ -119,11 +113,14 @@ lazy val `fsi-benchmark-core` = project | |
.settings(commonSettings) | ||
.settings(noPublishSettings) | ||
.settings( | ||
crossScalaVersions := Seq("2.13.0-RC2", "2.13.0-RC1", "2.12.8", "2.11.12"), | ||
libraryDependencies ++= Seq( | ||
"pl.project13.scala" % "sbt-jmh-extras" % "0.3.4", | ||
"org.scalatest" %% "scalatest" % (if (scalaVersion.value == "2.13.0-RC1") "3.0.8-RC3" else "3.0.8-RC5") % Test | ||
) | ||
crossScalaVersions := Seq("2.13.0", "2.12.8", "2.11.12"), | ||
libraryDependencies ++= Seq("pl.project13.scala" % "sbt-jmh-extras" % "0.3.4"), | ||
libraryDependencies ++= | ||
(if (scalaVersion.value == "2.13.0") { | ||
Seq("org.scalatest" % "scalatest_2.13.0-RC3" % "3.0.8-RC5" % Test) | ||
} else { | ||
Seq("org.scalatest" %% "scalatest" % "3.0.8-RC5" % Test) | ||
}) | ||
) | ||
|
||
lazy val `fsi-benchmark` = project | ||
|
@@ -137,6 +134,6 @@ lazy val `fsi-benchmark` = project | |
"com.dongxiguo" %% "fastring" % "1.0.0", | ||
"com.outr" %% "perfolation" % "1.1.2", | ||
"com.outr" %% "scribe-slf4j" % "2.7.7" % Test, | ||
"org.scalatest" %% "scalatest" % (if (scalaVersion.value == "2.13.0-RC1") "3.0.8-RC3" else "3.0.8-RC5") % Test | ||
"org.scalatest" %% "scalatest" % "3.0.8-RC5" % Test | ||
) | ||
) |
4 changes: 2 additions & 2 deletions
4
...re/NestedConcatenationBenchmarkCore.scala → ...re/NestedConcatenationBenchmarkCore.scala
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
2 changes: 1 addition & 1 deletion
2
...estedConcatenationBenchmarkCoreSpec.scala → ...estedConcatenationBenchmarkCoreSpec.scala
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
4 changes: 2 additions & 2 deletions
4
...impleConcatenationBenchmarkCoreSpec.scala → ...impleConcatenationBenchmarkCoreSpec.scala
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
4 changes: 2 additions & 2 deletions
4
...chmark/NestedConcatenationBenchmark.scala → ...chmark/NestedConcatenationBenchmark.scala
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
4 changes: 2 additions & 2 deletions
4
...chmark/SimpleConcatenationBenchmark.scala → ...chmark/SimpleConcatenationBenchmark.scala
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
2 changes: 1 addition & 1 deletion
2
...rk/NestedConcatenationBenchmarkSpec.scala → ...rk/NestedConcatenationBenchmarkSpec.scala
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
4 changes: 2 additions & 2 deletions
4
...rk/SimpleConcatenationBenchmarkSpec.scala → ...rk/SimpleConcatenationBenchmarkSpec.scala
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 was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
...pecs/fsi/FastStringInterpolatorSpec.scala → ...pecs/fsi/FastStringInterpolatorSpec.scala
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