-
Notifications
You must be signed in to change notification settings - Fork 14
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
19 changed files
with
502 additions
and
427 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2013-2017 Snowplow Analytics Ltd. All rights reserved. | ||
* | ||
* This program is licensed to you under the Apache License Version 2.0, | ||
* and you may not use this file except in compliance with the Apache License Version 2.0. | ||
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the Apache License Version 2.0 is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. | ||
*/ | ||
lazy val root = project.in(file(".")) | ||
.settings(Seq[Setting[_]]( | ||
organization := "com.snowplowanalytics", | ||
version := "0.4.0", | ||
description := "Scala tracker for Snowplow", | ||
name := "snowplow-scala-tracker", | ||
description := "Scala analytics SDK for Snowplow", | ||
scalaVersion := "2.11.11", | ||
crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.3"), | ||
scalacOptions := Seq("-deprecation", "-encoding", "utf8"), | ||
javacOptions ++= Seq("-source", "1.8", "-target", "1.8") | ||
)) | ||
.settings(BuildSettings.buildSettings) | ||
.settings(Seq( | ||
shellPrompt := { _ => name.value + " > " } | ||
)) | ||
.settings( | ||
libraryDependencies := Seq( | ||
Dependencies.Libraries.scalajHttp, | ||
Dependencies.Libraries.json4sJackson, | ||
Dependencies.Libraries.mockito, | ||
Dependencies.Libraries.specs2, | ||
Dependencies.Libraries.scalaCheck) | ||
) |
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,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2013-2015 Snowplow Analytics Ltd. All rights reserved. | ||
* Copyright (c) 2013-2017 Snowplow Analytics Ltd. All rights reserved. | ||
* | ||
* This program is licensed to you under the Apache License Version 2.0, | ||
* and you may not use this file except in compliance with the Apache License Version 2.0. | ||
|
@@ -12,36 +12,28 @@ | |
*/ | ||
import bintray.BintrayPlugin._ | ||
import bintray.BintrayKeys._ | ||
|
||
import sbt._ | ||
import Keys._ | ||
|
||
object BuildSettings { | ||
|
||
// Basic settings for our app | ||
lazy val basicSettings = Seq[Setting[_]]( | ||
organization := "com.snowplowanalytics", | ||
version := "0.3.0", | ||
description := "Scala tracker for Snowplow", | ||
scalaVersion := "2.10.6", | ||
crossScalaVersions := Seq("2.10.6", "2.11.5"), | ||
scalacOptions := Seq("-deprecation", "-encoding", "utf8"), | ||
resolvers ++= Dependencies.resolutionRepos | ||
// Makes our SBT settings available in runtime | ||
lazy val scalifySettings = Seq( | ||
sourceGenerators in Compile += Def.task { | ||
val file = (sourceManaged in Compile).value / "settings.scala" | ||
IO.write(file, """package com.snowplowanalytics.snowplow.scalatracker.generated | ||
|object ProjectSettings { | ||
| val version = "%s" | ||
| val name = "%s" | ||
| val organization = "%s" | ||
| val scalaVersion = "%s" | ||
|} | ||
|""".stripMargin.format(version.value, name.value, organization.value, scalaVersion.value)) | ||
Seq(file) | ||
}.taskValue | ||
) | ||
|
||
// Makes our SBT app settings available from within the ETL | ||
lazy val scalifySettings = Seq(sourceGenerators in Compile <+= (sourceManaged in Compile, version, name, organization, scalaVersion) map { (d, v, n, o, sv) => | ||
val file = d / "settings.scala" | ||
IO.write(file, """package com.snowplowanalytics.snowplow.scalatracker.generated | ||
|object ProjectSettings { | ||
| val version = "%s" | ||
| val name = "%s" | ||
| val organization = "%s" | ||
| val scalaVersion = "%s" | ||
|} | ||
|""".stripMargin.format(v, n, o, sv)) | ||
Seq(file) | ||
}) | ||
|
||
// Bintray publishing settings | ||
lazy val publishSettings = bintraySettings ++ Seq[Setting[_]]( | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
|
@@ -51,7 +43,7 @@ object BuildSettings { | |
|
||
// Maven Central publishing settings | ||
lazy val mavenCentralExtras = Seq[Setting[_]]( | ||
pomIncludeRepository := { x => false }, | ||
pomIncludeRepository := { _ => false }, | ||
homepage := Some(url("http://snowplowanalytics.com")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/snowplow/snowplow-scala-tracker"), "scm:[email protected]:snowplow/snowplow-scala-tracker.git")), | ||
pomExtra := ( | ||
|
@@ -65,5 +57,5 @@ object BuildSettings { | |
</developers>) | ||
) | ||
|
||
lazy val buildSettings = basicSettings ++ scalifySettings ++ publishSettings ++ mavenCentralExtras | ||
lazy val buildSettings = scalifySettings ++ publishSettings ++ mavenCentralExtras | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.11 | ||
sbt.version=1.0.2 |
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 +1 @@ | ||
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1") |
Oops, something went wrong.