Reads coursier environment variables and Java properties
This module reads environment variables and Java properties, and uses them to get default values for a number of coursier parameters, such as:
-
the coursier cache location, read from
COURSIER_CACHE
in the environment andcoursier.cache
in Java properties. It is recommended to use an absolute path rather than a relative one. -
the coursier archive cache location, read from
COURSIER_ARCHIVE_CACHE
in the environment and incoursier.archive.cache
in Java properties. -
credentials, read from
COURSIER_CREDENTIALS
in the environment, andcoursier.credentials
in Java properties. Its format is documented here: https://github.com/coursier/coursier/blob/701e93664855709db38e443cb7a19e36ddc49b78/doc/docs/other-credentials.md -
TTL for snapshot artifacts / version listings / etc., read from
COURSIER_TTL
in the environment andcoursier.ttl
in Java properties. This value is parsed withscala.concurrent.duration.Duration
, and accepts formats like "5 hours", "1 day", etc. or just "0". -
default repositories, read from
COURSIER_REPOSITORIES
in the environment andcoursier.repositories
in Java properties. It can be set to values like "ivy2Local|central|https://maven.google.com". Its format is documented here: https://github.com/coursier/coursier/blob/701e93664855709db38e443cb7a19e36ddc49b78/doc/docs/other-repositories.md -
mirror repository files, read from
COURSIER_MIRRORS
andcoursier.mirrors
, whose file they point to should contains things likegoogle.from=https://repo1.maven.org/maven2 google.to=https://maven.google.com
Environment variables always have precedence over Java properties.
Attributes
- Companion
- trait
- Source
- CoursierConfigModule.scala
- Graph
-
- Supertypes
-
trait CoursierConfigModuleclass ExternalModuleclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass Any
- Self type
-
CoursierConfigModule.type