简体   繁体   English

如何在 scala/sbt 中安装 scodec 库?

[英]How to install scodec library in scala/sbt?

I have been asked by my developers to have scodec libraries installed on a linux server and I'm lost as I can't find any documentation that points about installing the scodec library!我的开发人员要求我在 linux 服务器上安装 scodec 库,但我迷路了,因为我找不到任何有关安装 scodec 库的文档!

scodec has 11 repositories in github. scodec在 github 中有 11 个存储库。 This is scodec.org , the official documentation.这是scodec.org ,官方文档。 Seems like the releases page on the docs, is not very updated.似乎文档上的发布页面不是很更新。 So I am going to elaborate on the repositories based on github:所以我将详细介绍基于github的仓库:

scodec-bits编解码器位

Provides persistent datatypes for working with bits and bytes.提供用于处理位和字节的持久数据类型。

Add the following into your build.sbt file:将以下内容添加到您的build.sbt文件中:

libraryDependencies += "org.scodec" %% "scodec-bits" % "1.1.23"

Maven link. Maven链接。 Github link. Github链接。

scodec-stream编解码器流

Scodec-stream is a library for streaming binary encoding and decoding. Scodec-stream 是一个用于流式二进制编码和解码的库。 It is built atop scodec and fs2.它建立在 scodec 和 fs2 之上。

Add the following into your build.sbt file:将以下内容添加到您的build.sbt文件中:

libraryDependencies += "org.scodec" %% "scodec-stream" % "2.0.0"

Maven link. Maven链接。 Github link. Github链接。

scodec-protocols编解码器协议

Provides models of common binary protocols using the scodec library.使用 scodec 库提供常见二进制协议的模型。

Add the following into your build.sbt file:将以下内容添加到您的build.sbt文件中:

libraryDependencies += "org.scodec" %% "scodec-protocols" % "2.0.0"

Maven link. Maven链接。 Github link. Github链接。

scodec编解码器

Github link. Github链接。 This package DO NOT publish to Maven central/Sonatype.此 package 请勿发布到 Maven central/Sonatype。 Hence you cannot fetch it this way.因此,您无法以这种方式获取它。 You can try to download one of the releases and read How can I add unmanaged JARs in sbt-assembly to the final fat JAR?您可以尝试下载其中一个版本并阅读How can I add unmanaged JARs in sbt-assembly to final fat JAR?

scodec-cats编解码器猫

Integration between scodec and cats.编解码器和猫之间的集成。

Add the following into your build.sbt :将以下内容添加到您的build.sbt

libraryDependencies += "org.scodec" %% "scodec-cats" % "1.0.0"

Maven link. Maven链接。 Github link. Github链接。

scodec-build编解码器构建

This repository contains an SBT plugin that is used by the SBT builds of the other scodec modules.此存储库包含一个 SBT 插件,由其他 scodec 模块的 SBT 构建使用。 It is not intended for direct use.它不适合直接使用。

I will not elaborate about this one.我不会详细说明这一点。 If there is a need for that please comment and I'll add details.如果有需要,请发表评论,我会添加详细信息。

scodec.github.io scodec.github.io

No releases yet.还没有发布。 Skipping as well.跳过也一样。 Github link. Github链接。

scodec-website编解码器网站

Source for scodec.org website. scodec.org 网站的来源。 Hence skipping.因此跳过。

scodec-spire scodec-尖顶

Integration between scodec and spire. scodec 和 spire 之间的集成。 This package last publish was at 2016, and it was for Scala 2.11.此 package 最后一次发布是在 2016 年,适用于 Scala 2.11。 But you can add it with:但是你可以添加它:

libraryDependencies += "org.scodec" %% "scodec-spire" % "0.4.0"

Maven link. Maven链接。 Github link. Github链接。

I skipped scodec-scalaz and scodec-akka which are archived.我跳过了存档的 scodec-scalazscodec-akka

I hope this will give you an idea where to start.我希望这能让你知道从哪里开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM