Skip to content

Commit

Permalink
1.0.1 and 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
karimagnusson committed Jan 25, 2024
1 parent edd6d3a commit 35cf67e
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 23 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ zio-path is a simple library for working with files and folders in ZIO. It is a

#### Sbt
```sbt
// compiled for Scala 2.13.8 and ZIO 1.0.18
libraryDependencies += "io.github.karimagnusson" % "zio-path" % "1.0.0"
// available for Scala 2.12, 2.13 and 3

// compiled for Scala 2.13.8 and ZIO 2.0.12
libraryDependencies += "io.github.karimagnusson" % "zio-path" % "2.0.0"
// for ZIO 1
libraryDependencies += "io.github.karimagnusson" % "zio-path" % "1.0.1"

// for ZIO 2
libraryDependencies += "io.github.karimagnusson" % "zio-path" % "2.0.1"
```

#### Create instance
Expand Down Expand Up @@ -144,7 +146,7 @@ def rename(dest: ZDir): Task[ZDir]
def rename(dirName: String): Task[ZDir]
def moveTo(dest: ZDir): Task[ZDir]
def moveHere(paths: Seq[ZPath]): Task[Seq[ZPath]]
def delete: IO[IOException, Unit] // Delee the folder and all its contents
def delete: IO[IOException, Unit] // Delete the folder and all its contents
def copy(other: ZDir): Task[Unit] // Copy the folder and all its contents
def list: IO[IOException, List[ZPath]] // List all the files and folders
def listFiles: IO[IOException, List[ZFile]]
Expand Down
54 changes: 46 additions & 8 deletions zio1/build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
name := "zio-path"

organization := "io.kuzminki"
inThisBuild(List(
organization := "io.github.karimagnusson",
homepage := Some(url("https://kuzminki.info/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"karimagnusson",
"Kari Magnusson",
"kotturinn@gmail.com",
url("https://github.com/karimagnusson")
)
)
))

ThisBuild / version := "1.0.1"
ThisBuild / versionScheme := Some("early-semver")

scalaVersion := "3.3.1"

lazy val scala3 = "3.3.1"
lazy val scala213 = "2.13.12"
lazy val scala212 = "2.12.18"
lazy val supportedScalaVersions = List(scala212, scala213, scala3)

lazy val root = (project in file("."))
.aggregate(zioPath)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)

lazy val zioPath = (project in file("zio-path"))
.settings(
name := "zio-path",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.18",
"dev.zio" %% "zio-streams" % "1.0.18",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0"
),
scalacOptions ++= Seq(
"-deprecation",
"-feature"
)
)


version := "1.0.0"

scalaVersion := "2.13.8"

libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.18",
"dev.zio" %% "zio-streams" % "1.0.18"
)
2 changes: 1 addition & 1 deletion zio1/project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sbt.version=1.5.2
sbt.version=1.9.7

File renamed without changes.
51 changes: 43 additions & 8 deletions zio2/build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
name := "zio-path"

organization := "io.kuzminki"
inThisBuild(List(
organization := "io.github.karimagnusson",
homepage := Some(url("https://kuzminki.info/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"karimagnusson",
"Kari Magnusson",
"kotturinn@gmail.com",
url("https://github.com/karimagnusson")
)
)
))

version := "2.0.0"
ThisBuild / version := "2.0.1"
ThisBuild / versionScheme := Some("early-semver")

scalaVersion := "2.13.8"
scalaVersion := "3.3.1"

lazy val scala3 = "3.3.1"
lazy val scala213 = "2.13.12"
lazy val scala212 = "2.12.18"
lazy val supportedScalaVersions = List(scala212, scala213, scala3)

lazy val root = (project in file("."))
.aggregate(zioPath)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)

lazy val zioPath = (project in file("zio-path"))
.settings(
name := "zio-path",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.0.21",
"dev.zio" %% "zio-streams" % "2.0.21",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0"
),
scalacOptions ++= Seq(
"-deprecation",
"-feature"
)
)

libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.0.12",
"dev.zio" %% "zio-streams" % "2.0.12"
)
2 changes: 1 addition & 1 deletion zio2/project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sbt.version=1.5.2
sbt.version=1.9.7

File renamed without changes.

0 comments on commit 35cf67e

Please sign in to comment.