Skip to content

Commit

Permalink
Prepare release 2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Quiroz <[email protected]>
  • Loading branch information
cquiroz committed Apr 24, 2020
1 parent c3d3a64 commit 7b64fd0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Scala 2.11, Scala 2.12 and Scala 2.13 are supported.

To get started with SBT, add one (or both) of these dependencies:

- `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0-RC5"`
- `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0"`

#### Documentation

Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbtcrossproject.CrossPlugin.autoImport.{ CrossType, crossProject }
import sbt._
import sbt.io.Using

val scalaVer = "2.13.1"
val scalaVer = "2.13.2"
val tzdbVersion = "2019c"
Global / onChangedBuildSource := ReloadOnSourceChanges

Expand Down Expand Up @@ -39,7 +39,7 @@ inThisBuild(
lazy val commonSettings = Seq(
description := "java.time API implementation in Scala and Scala.js",
scalaVersion := scalaVer,
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1"),
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.2"),
// Don't include threeten on the binaries
mappings in (Compile, packageBin) := (mappings in (Compile, packageBin)).value.filter {
case (f, s) => !s.contains("threeten")
Expand Down Expand Up @@ -149,7 +149,7 @@ lazy val scalajavatime = crossProject(JVMPlatform, JSPlatform)
copyAndReplace(srcDirs, destinationDir)
}.taskValue,
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-locales" % "0.6.0"
"io.github.cquiroz" %%% "scala-java-locales" % "1.0.0"
)
)
.jvmSettings(
Expand Down Expand Up @@ -218,7 +218,7 @@ lazy val scalajavatimeTests = crossProject(JVMPlatform, JSPlatform)
copyAndReplace(srcDirs, destinationDir)
}.taskValue,
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "locales-full-db" % "0.6.0"
"io.github.cquiroz" %%% "locales-full-db" % "1.0.0"
)
)
.dependsOn(scalajavatime, scalajavatimeTZDB)
Expand Down
26 changes: 7 additions & 19 deletions docs/src/main/tut/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Scala 2.11, 2.12 and 2.13 are supported.

To get started with SBT, add one of these dependencies:

* `libraryDependencies += "io.github.cquiroz" %% "scala-java-time" % "2.0.0-RC4"` (for Scala)
* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0-RC4"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)
* `libraryDependencies += "io.github.cquiroz" %% "scala-java-time" % "2.0.0"` (for Scala)
* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)

To get the latest snapshots add the repo

Expand All @@ -71,8 +71,8 @@ resolvers +=

and either:

* `libraryDependencies += "io.github.cquiroz" %% "scala-java-time" % "2.0.0-SNAPSHOT"` (for Scala)
* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.0-SNAPSHOT"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)
* `libraryDependencies += "io.github.cquiroz" %% "scala-java-time" % "2.0.1-SNAPSHOT"` (for Scala)
* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.0.1-SNAPSHOT"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)

### Time zones

Expand All @@ -85,7 +85,7 @@ If you don't need to use timezones in your application you can just stop here. B
The timezone for js is provided in a separate bundle which contains all time zones available from
[IANA Time Zone Database](https://www.iana.org/time-zones). To use them you need to add the following dependency

* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.0.0-RC4_2019c"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)
* `libraryDependencies += "io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.0.0_2019c"` (for Scala.js, [Scala.js plugin](http://www.scala-js.org/tutorial/basic/#sbt-setup) required)

Note that the db is fairly large and due to the characteristics of the API it's not very ammenable to optimization
This database is published every now and then so it maybe old. For current version see the following section.
Expand All @@ -102,7 +102,7 @@ To do that you need to:
* Add `sbt-tzdb` to your list of plugins (Note you need sbt 1.x)

```scala
addSbtPlugin("io.github.cquiroz" % "sbt-tzdb" % "0.4.0")
addSbtPlugin("io.github.cquiroz" % "sbt-tzdb" % "1.0.0")
```

* Enable the plugin for your `Scala.js` project:
Expand Down Expand Up @@ -137,7 +137,7 @@ Pull requests with later versions of the dat file will be accepted.

## Locale

Starting on 2.0.0-RC4 it is no longer necessary to register locales but only a minimal locale based on english is
Starting on 2.0.0 it is no longer necessary to register locales but only a minimal locale based on english is
provided. You may want to use [sbt-locales](https://github.com/cquiroz/sbt-locales) to generate
a custom locale database.

Expand All @@ -164,14 +164,6 @@ We are especially interested in contributions that tackle the following issues:
Have a look at the [issues](https://github.com/cquiroz/scala-java-time/issues) or [issues](https://github.com/soc/scala-java-time/issues) to find something to work on! Let us know if you need help!
#### Plans
##### 2.0
A stable release of 2.0 will be published shortly after RC4 is published.
#### FAQs
##### What's with the packages? the code uses `org.threeten.bp` but I use `java.time`
The original code was in the `org.threeten.bp` and that has been maintained, among other reasons, because writing
Expand All @@ -187,10 +179,6 @@ No. This project is derived from the Reference Implementation previously hosted
That project had a BSD license, which has been preserved here.
Thus, this project is a fork of the original code before entry to OpenJDK.
##### What is the relation to [this](https://github.com/soc/scala-java-time/) project
This is a fork from the original [project](https://github.com/soc/scala-java-time/) aim to complete the API to work on Scala.js
##### Are there are differences with the Java Time API?
The project aims to be an exact port of the java time API to scala.
Expand Down

0 comments on commit 7b64fd0

Please sign in to comment.