Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
73 lines (62 sloc) 2.73 KB
/*
* Copyright 2017 Daniel Spiewak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
baseVersion in ThisBuild := "0.4"
bintrayVcsUrl in ThisBuild := Some("git@github.com:djspiewak/parseback.git")
addCommandAlias("measure-all", "benchmarks/jmh:run -rff results.csv")
addCommandAlias("measure", "benchmarks/jmh:run -rff results.csv .*parsebackRun")
addCommandAlias("profile", "benchmarks/jmh:run -prof jmh.extras.JFR -f 1 .*parsebackRun")
publishGithubUser in ThisBuild := "djspiewak"
publishFullName in ThisBuild := "Daniel Spiewak"
organization in ThisBuild := "com.codecommit"
lazy val root = project
.in(file("."))
.settings(name := "root")
.settings(noPublishSettings)
.aggregate(benchmarks, coreJVM, coreJS)
lazy val benchmarks = project
.in(file("benchmarks"))
.dependsOn(coreJVM)
.settings(name := "parseback-benchmarks")
.settings(
libraryDependencies ++= Seq(
// TODO: Update this library to 2.13
// GLL Combinators, another parsing library by djspiewak
"com.codecommit" % "gll-combinators_2.12" % "2.3",
// Scala's own Parser combinators
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"),
sourceDirectory in Jmh := (sourceDirectory in Compile).value)
.settings(noPublishSettings)
.enablePlugins(JmhPlugin)
// shadow builtin crossproject support from scalajs plugin as it is currently deprecated
// this import statement should be removable once scalajs fully removes it
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
lazy val core = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "parseback")
.settings(
libraryDependencies += "org.typelevel" %%% "cats-core" % "2.1.0",
libraryDependencies ++= Seq(
"org.scalacheck" %% "scalacheck" % "1.14.2" % Test,
"org.specs2" %% "specs2-core" % Versions.Specs % Test,
"org.specs2" %% "specs2-scalacheck" % Versions.Specs % Test),
initialCommands := "import parseback._",
logBuffered in Test := false)
.settings(
mimaPreviousArtifacts := Set.empty) // TODO disable checks when sbt-spiewak has a better way of filtering versions
lazy val coreJS = core.js
lazy val coreJVM = core.jvm
You can’t perform that action at this time.