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_CACHEin the environment andcoursier.cachein Java properties. It is recommended to use an absolute path rather than a relative one. -
the coursier archive cache location, read from
COURSIER_ARCHIVE_CACHEin the environment and incoursier.archive.cachein Java properties. -
credentials, read from
COURSIER_CREDENTIALSin the environment, andcoursier.credentialsin 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_TTLin the environment andcoursier.ttlin 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_REPOSITORIESin the environment andcoursier.repositoriesin 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_MIRRORSandcoursier.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