sconfig

Configuration library for Scala using HOCON files

License

License

Categories

Categories

config Application Layer Libs Configuration
GroupId

GroupId

org.ekrich
ArtifactId

ArtifactId

sconfig_0.27
Last Version

Last Version

1.3.3
Release Date

Release Date

Type

Type

jar
Description

Description

sconfig
Configuration library for Scala using HOCON files
Project URL

Project URL

https://github.com/ekrich/sconfig
Project Organization

Project Organization

org.ekrich
Source Code Management

Source Code Management

https://github.com/ekrich/sconfig

Download sconfig_0.27

How to add to project

<!-- https://jarcasting.com/artifacts/org.ekrich/sconfig_0.27/ -->
<dependency>
    <groupId>org.ekrich</groupId>
    <artifactId>sconfig_0.27</artifactId>
    <version>1.3.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.ekrich/sconfig_0.27/
implementation 'org.ekrich:sconfig_0.27:1.3.3'
// https://jarcasting.com/artifacts/org.ekrich/sconfig_0.27/
implementation ("org.ekrich:sconfig_0.27:1.3.3")
'org.ekrich:sconfig_0.27:jar:1.3.3'
<dependency org="org.ekrich" name="sconfig_0.27" rev="1.3.3">
  <artifact name="sconfig_0.27" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.ekrich', module='sconfig_0.27', version='1.3.3')
)
libraryDependencies += "org.ekrich" % "sconfig_0.27" % "1.3.3"
[org.ekrich/sconfig_0.27 "1.3.3"]

Dependencies

compile (2)

Group / Artifact Type Version
ch.epfl.lamp : dotty-library_0.27 jar 0.27.0-RC1
org.scala-lang.modules : scala-collection-compat_2.13 jar 2.2.0

test (3)

Group / Artifact Type Version
org.ekrich » sconfig-test-lib_0.27 jar 1.3.3
io.crashbox : spray-json_2.13 jar 1.3.5-7
com.novocode : junit-interface jar 0.11

Project Modules

There are no modules declared in this project.

sconfig

Build Status

Configuration library written in Scala which is a direct translation of the original widely used Java library.

Scala JVM, Scala Native, and Scala.js are supported. Scala JVM is fully supported whereas the other platforms support a subset of the full API.

For motivation and background about this project see the PR to the original project. The TLDR is the library was ported to Scala to support Scala Native so scalafmt which uses HOCON configuration could be compiled into a native application.

Care has been taken to keep the API the same but changes were needed when moving from the Java API. Using Java is also possible as demonstrated by including the working Java examples.

If you are looking for the original proven Java API, see https://github.com/lightbend/config.

Sonatype

Maven Central

libraryDependencies += "org.ekrich" %% "sconfig" % "x.y.z"

To use in sbt, replace x.y.z with the version from Maven Central badge above. Use %%% for non-JVM projects. All available versions can be seen at the Maven Repository.

Cross Build Versions

Scala.js

Scala Version JVM Scala.js (1.x) Native (0.4.x)
2.11.x
2.12.x n/a
2.13.x n/a
3.0.0-M2 n/a

Usage and Help

Scaladoc Join chat https://gitter.im/ekrich/sconfig

Please refer to the original library documentation here. This is to reduce the maintenance burden of this library.

The intent is to keep the library in sync with the original but each PR needs to be be ported to maintain feature parity. The documentation could contain features that are not yet implemented in this library.

Scala Native and Scala.js - A guide to using Scala Native and Scala.js.

For specific changes, refer to the releases below.

Versions

Release 1.3.5 - (2020-11-24)
Release 1.3.4 - (2020-11-03)
Release 1.3.3 - (2020-09-14)
Release 1.3.2 - (2020-09-01)
Release 1.3.1 - (2020-07-24)
Release 1.3.0 - (2020-05-01)
Release 1.2.2 - (2020-04-28)
Release 1.2.1 - (2020-02-18)
Release 1.1.3 - (2019-12-27)
Release 1.0.0 - (2019-08-05)
Release 0.9.2 - (2019-06-10)
Release 0.9.1 - (2019-05-22)
Release 0.9.0 - (2019-05-21)
Release 0.8.0 - (2019-04-23)
Release 0.7.6 - (2019-04-10)
Release 0.7.5 - (2019-04-05)
Release 0.7.0 - (2018-12-14)

Versions

Version
1.3.3
1.3.2