-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event parser should fail on oversized fields (close #115)
- Loading branch information
Showing
12 changed files
with
389 additions
and
145 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 |
---|---|---|
|
@@ -15,20 +15,15 @@ | |
import sbt._ | ||
import Keys._ | ||
|
||
// Bintray plugin | ||
import bintray.BintrayPlugin._ | ||
import bintray.BintrayKeys._ | ||
|
||
// Mima plugin | ||
import com.typesafe.tools.mima.plugin.MimaKeys._ | ||
import com.typesafe.tools.mima.plugin.MimaPlugin | ||
|
||
// Scoverage plugin | ||
import scoverage.ScoverageKeys._ | ||
|
||
import com.typesafe.sbt.site.SitePlugin.autoImport._ | ||
import com.typesafe.sbt.site.SiteScaladocPlugin.autoImport._ | ||
import com.typesafe.sbt.SbtGit.GitKeys.{gitBranch, gitRemoteRepo} | ||
import com.typesafe.sbt.site.preprocess.PreprocessPlugin.autoImport._ | ||
|
||
import org.scalafmt.sbt.ScalafmtPlugin.autoImport._ | ||
|
@@ -48,44 +43,36 @@ object BuildSettings { | |
) | ||
) | ||
|
||
// Bintray publishing settings | ||
lazy val bintrayPublishSettings = bintraySettings ++ Seq[Setting[_]]( | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
bintrayOrganization := Some("snowplow"), | ||
bintrayRepository := "snowplow-maven" | ||
) | ||
|
||
// Maven Central publishing settings | ||
lazy val mavenCentralExtras = Seq[Setting[_]]( | ||
lazy val publishSettings = Seq[Setting[_]]( | ||
publishArtifact := true, | ||
Test / publishArtifact := false, | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
pomIncludeRepository := { _ => false }, | ||
homepage := Some(url("http://snowplowanalytics.com")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/snowplow/scala-scala-analytics-sdk"), | ||
"scm:[email protected]:snowplow/snowplow-scala-analytics-sdk.git")), | ||
pomExtra := ( | ||
<developers> | ||
<developer> | ||
<name>Snowplow Analytics Ltd</name> | ||
<email>support@snowplowanalytics.com</email> | ||
<organization>Snowplow Analytics Ltd</organization> | ||
<organizationUrl>http://snowplowanalytics.com</organizationUrl> | ||
</developer> | ||
</developers>) | ||
developers := List( | ||
Developer( | ||
"Snowplow Analytics Ltd", | ||
"Snowplow Analytics Ltd", | ||
"[email protected]", | ||
url("https://snowplowanalytics.com") | ||
) | ||
) | ||
) | ||
|
||
lazy val publishSettings = bintrayPublishSettings ++ mavenCentralExtras | ||
|
||
// If new version introduces breaking changes, | ||
// clear-out mimaBinaryIssueFilters and mimaPreviousVersions. | ||
// Otherwise, add previous version to set without | ||
// removing other versions. | ||
val mimaPreviousVersions = Set() | ||
|
||
val mimaSettings = MimaPlugin.mimaDefaultSettings ++ Seq( | ||
val mimaSettings = Seq( | ||
mimaPreviousArtifacts := mimaPreviousVersions.map { organization.value %% name.value % _ }, | ||
ThisBuild / mimaFailOnNoPrevious := false, | ||
mimaBinaryIssueFilters ++= Seq(), | ||
test in Test := { | ||
Test / test := { | ||
mimaReportBinaryIssues.value | ||
(test in Test).value | ||
(Test / test).value | ||
} | ||
) | ||
|
||
|
@@ -105,6 +92,6 @@ object BuildSettings { | |
|
||
lazy val formattingSettings = Seq( | ||
scalafmtConfig := file(".scalafmt.conf"), | ||
scalafmtOnCompile := false | ||
scalafmtOnCompile := true | ||
) | ||
} |
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,8 +1,8 @@ | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.3") | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.5.0") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.0") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0") | ||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.0") | ||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7") | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.9.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3") |
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
Oops, something went wrong.