Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Cannot install your repo via SBT #23

Open
ditekunov opened this issue Jul 6, 2018 · 3 comments
Open

Cannot install your repo via SBT #23

ditekunov opened this issue Jul 6, 2018 · 3 comments

Comments

@ditekunov
Copy link

Sbt supports Maven projects installing, but I cannot install yours via

libraryDependencies += "org.meteogroup.jbrotli" % "jbrotli" % "0.5.0"

So it fails with "unresolved dependency: org.meteogroup.jbrotli#jbrotli;0.5.0: not found" exception

@atk91
Copy link

atk91 commented Jul 6, 2018

This is happening because the only available version of jbrotli in bintray is 0.2.0

@nha
Copy link

nha commented Jul 7, 2018

see #11

@nwtgck
Copy link

nwtgck commented Jul 28, 2018

Hi, @ditekunov This explanation may be helpful.
https://github.com/guardian/play-brotli-filter

According to the repository above, build.sbt looks like the following.

...

// (from: https://github.com/guardian/play-brotli-filter)
resolvers += "JBrotli Bintray Repository" at "https://dl.bintray.com/nitram509/jbrotli/"


// For jbrotli native
// (from: https://github.com/guardian/play-brotli-filter)
val brotliNativeArtefact = {
  val osName = System.getProperty("os.name").toLowerCase
  val osArch = System.getProperty("os.arch").toLowerCase
  val family = if (osName.startsWith("linux")) {
    "linux"
  } else if (osName.startsWith("mac os x") || osName.startsWith("darwin")) {
    "darwin"
  } else {
    "win32"
  }

  val arch = if (family == "darwin") {
    "x86-amd64"
  } else if (osArch == "i386" || osArch == "i486" || osArch == "i586" || osArch == "i686") {
    "x86"
  } else if (osArch == "amd64" || osArch == "x86-64" || osArch == "x64") {
    "x86-amd64"
  } else if (family == "linux" && osArch.startsWith("arm")) {
    "arm32-vfp-hflt"
  }

  s"jbrotli-native-$family-$arch"
}

libraryDependencies ++= Seq(
  "org.meteogroup.jbrotli" % "jbrotli" % "0.5.0",
  "org.meteogroup.jbrotli" % brotliNativeArtefact % "0.5.0"
)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants