zio-http icon indicating copy to clipboard operation
zio-http copied to clipboard

Publish ZIO Http under `dev.zio`

Open ioleo opened this issue 3 years ago • 8 comments

When trying to install according to the docs:

libraryDependencies += "dev.zio" %% "zio-http" % "2.0.0-RC11"

I'm getting:

sbt.librarymanagement.ResolveException: Error downloading dev.zio:zio-http_3:2.0.0-RC11

also tried

libraryDependencies += "dev.zio" %% "zio-http" % "2.0.0-RC11" cross CrossVersion.for3Use2_13

I'm getting:

sbt.librarymanagement.ResolveException: Error downloading dev.zio:zio-http_2.13:2.0.0-RC11

The only artifact that resolves is "io.d11" %% "zhttp" % "2.0.0-RC11", however that seems to contain a completely diffrent (outdated) version - eg. the package prefix is zhttp instead of zio.http, Server is in service subpackage.

How do I install and use the latest version?

ioleo avatar Sep 14 '22 12:09 ioleo

Version in zio org not published yet

vigoo avatar Sep 14 '22 16:09 vigoo

Let's keep the issue open, until it's resolved @vigoo. Pinning it so that everyone is aware.

tusharmath avatar Sep 15 '22 01:09 tusharmath

FYI: I got it working by using d11 and 2.0.0-RC10 (RC11 conflicted with tapir).

ioleo avatar Sep 16 '22 09:09 ioleo

This is a serious problem. I can't get "dev.zio" %% "zio-http" % "2.0.0-RC11" dependence, and d11's document site was removed.

changzhiwin avatar Sep 17 '22 07:09 changzhiwin

It's not work for me also. Anyone can tell me how to fix the dependence setting?

val ZIOVersion = "2.0.2"
val ZIOHttpVersion = "2.0.0-RC11"
// val ZIOHttpVersion = "2.0.0-RC11+49-fc62691f-SNAPSHOT"

resolvers ++= Seq(
  "Secured Central Repository" at "https://repo1.maven.org/maven2"
  //"Sonatype snapshots" at "https://oss.sonatype.org/service/local/repositories/snapshots/content/"
)

libraryDependencies ++= Seq(
  "dev.zio" %% "zio" % ZIOVersion, 
  "dev.zio" %% "zio-http" % ZIOHttpVersion
)

changzhiwin avatar Sep 19 '22 01:09 changzhiwin

Note that there were still no new release since it moved into the ZIO organization, this ticket was just closed because the publishing settings were fixed in the repo.

vigoo avatar Sep 19 '22 07:09 vigoo

Reopened to avoid confusion

vigoo avatar Sep 19 '22 07:09 vigoo

Reopened to avoid confusion

Thanks, it's really confuse me. Though I fix this locally by using publishLocal command(both zio-http and zio-http-logging).

changzhiwin avatar Sep 19 '22 13:09 changzhiwin

zio-http snapshots can be found here -- https://oss.sonatype.org/#nexus-search;quick~zio-http_2.13 but zio-http-logging snapshots are missing still and it will leads to sbt errors.

Can zio-http-logging snapshots be also published, so we at least can use snapshot versions until official release?

ploddi avatar Oct 23 '22 06:10 ploddi

@ploddi Wait a moment, and using publishLocal for current development.

changzhiwin avatar Oct 23 '22 09:10 changzhiwin

I think this is solved now

vigoo avatar Dec 07 '22 08:12 vigoo

What do you mean when saying using publishLocal?

martintamb12 avatar Jan 10 '23 05:01 martintamb12