Skip to content

Commit

Permalink
add publishing settings, remove old sbt, increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
d6y committed May 9, 2018
1 parent 79e585e commit c1a8868
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ That is, if you supply a Google Analytics tracking ID, the head of all pages wil

1. Include the dependency:

// For Lift 3.2.x (Scala 2.12):
"net.liftmodules" %% "google-analytics_3.2" % "1.2.0-SNAPSHOT"

Note that from 1.2.0 onwards this module switched to using Google Tag Manager (via [#8](https://github.com/d6y/liftmodules-googleanalytics/pull/8)).
The versions below use the older `ga.js` approach.

// For Lift 3.1.x (Scala 2.12):
"net.liftmodules" %% "google-analytics_3.1" % "1.1.0-SNAPSHOT"

Expand Down
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name := "google-analytics"

organization := "net.liftmodules"

version := "1.1.1-SNAPSHOT"
version := "1.2.0-SNAPSHOT"

liftVersion := "3.2.0"

Expand All @@ -27,6 +27,11 @@ resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repo
libraryDependencies +=
"net.liftweb" %% "lift-webkit" % liftVersion.value % "provided"

publishTo := (version.value.endsWith("SNAPSHOT") match {
case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
case false => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
)
credentials ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
Expand Down
2 changes: 0 additions & 2 deletions project/plugins.sbt

This file was deleted.

2 changes: 0 additions & 2 deletions sbt

This file was deleted.

Binary file removed sbt-launch.jar
Binary file not shown.

0 comments on commit c1a8868

Please sign in to comment.