Skip to content

Commit

Permalink
Updated deployment/package name/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
jroper committed Aug 4, 2017
1 parent 032054f commit 2ba746f
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 41 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Since it is unofficial, don't expect any support, bug fixes or updates in any so
Add the following dependency to `build.sbt`:

```scala
"com.typesafe.play.extras" %% "play-geojson" % "1.4.0"
resolvers += Resolver.bintrayRepo("jroper", "maven")
"au.id.jazzy.play" %% "play-geojson" % "1.5.0"
```

### 1.5.0 migration notes

Starting version 1.5.0, `play-geojson` is now deployed to bintray rather than Maven central, the group id/organization has changed from `com.typesafe.play.extras` to `au.id.jazzy.play`, and the package name has changed from `play.extras.geojson` to `au.id.jazzy.play.geojson`. So be sure to add the bintray repo above to your build and migrate your code accordingly.

The motivation behind this change is that this has never been (and probably will never be) an official Play library maintained by Lightbend, I have always maintained it in my spare time, and so the package name and organisation have been updated to reflect this, so as not to set incorrect expectations.

### Version compatibility Matrix

| **play-geojson version** | **Play version** |
Expand All @@ -30,13 +37,14 @@ Add the following dependency to `build.sbt`:
| 1.2.x | 2.3.x |
| 1.3.x | 2.4.x |
| 1.4.x | 2.5.x |
| 1.5.x | 2.6.x |

## Usage instructions

Import the types you need:

```scala
import play.extras.geojson._
import au.id.jazzy.play.geojson._
```

Serialise a GeoJSON object to a JSON:
Expand Down
23 changes: 4 additions & 19 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
organization := "com.typesafe.play.extras"
organization := "au.id.jazzy"
name := "play-geojson"

scalaVersion := "2.12.2"
Expand All @@ -12,7 +12,7 @@ libraryDependencies ++= Seq(
resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases"

homepage := Some(url("https://github.com/jroper/play-geojson"))
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
pomExtra := {
<scm>
<url>https://github.com/jroper/play-geojson</url>
Expand All @@ -29,23 +29,8 @@ pomExtra := {
pomIncludeRepository := { _ => false }

// Release settings
sonatypeProfileName := "com.typesafe"
bintrayRepository := "maven"
bintrayPackage := "play-geojson"
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true
releaseTagName := (version in ThisBuild).value

import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)

2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.0")
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import play.api.libs.json._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import play.api.libs.json._
import play.api.libs.functional._
import play.api.libs.functional.syntax._

/**
* A latitude longitude CRS, for use with WGS84 ( == EPSG:4326).
Expand All @@ -30,4 +28,4 @@ object Wgs84Format extends CrsFormat[LatLng] {
)

override def isDefault = true
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import play.api.libs.json._
import play.api.libs.functional._
import play.api.libs.functional.syntax._
import play.extras.geojson._

/**
* LngLat is like LatLng except the ordering or latitude and longitude.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import play.api.libs.json._
import scala.math._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import org.specs2.mutable.Specification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import org.specs2.mutable.Specification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import org.specs2.mutable.Specification
import play.api.libs.json._

class LngLatSpec extends Specification {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package play.extras.geojson
package au.id.jazzy.play.geojson

import scala.collection.immutable.Seq
import org.specs2.mutable.Specification
import play.api.libs.json._

class SphericalMercatorSpec extends Specification {

Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.4.1-SNAPSHOT"
version in ThisBuild := "1.4.1-SNAPSHOT"

0 comments on commit 2ba746f

Please sign in to comment.