Skip to content

Commit c6550c2

Browse files
committed
Add Coursier-specific environment variables
1 parent 6898753 commit c6550c2

File tree

1 file changed

+30
-3
lines changed
  • modules/core/src/main/scala/scala/build/internals

1 file changed

+30
-3
lines changed

modules/core/src/main/scala/scala/build/internals/EnvVar.scala

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,40 @@ object EnvVar {
8787
val shell = EnvVar("SHELL", "The currently used shell")
8888
val vcVarsAll = EnvVar("VCVARSALL", "Visual C++ Redistributable Runtimes")
8989
val zDotDir = EnvVar("ZDOTDIR", "Zsh configuration directory")
90+
val mavenHome = EnvVar("MAVEN_HOME", "Maven home directory")
9091
}
9192

9293
object Coursier extends EnvVarGroup {
9394
override def groupName: String = "Coursier"
94-
override def all = Seq(coursierCache, coursierMode)
95-
val coursierCache = EnvVar("COURSIER_CACHE", "Coursier cache location")
96-
val coursierMode = EnvVar("COURSIER_MODE", "Coursier mode (can be set to 'offline')")
95+
override def all = Seq(
96+
coursierBinDir,
97+
coursierCache,
98+
coursierConfigDir,
99+
coursierCredentials,
100+
insideEmacs,
101+
coursierExperimental,
102+
coursierJni,
103+
coursierMode,
104+
coursierNoTerm,
105+
coursierProgress,
106+
coursierRepositories,
107+
coursierVendoredZis,
108+
csMavenHome
109+
)
110+
val coursierBinDir = EnvVar("COURSIER_BIN_DIR", "Coursier app binaries directory")
111+
val coursierCache = EnvVar("COURSIER_CACHE", "Coursier cache location")
112+
val coursierConfigDir = EnvVar("COURSIER_CONFIG_DIR", "Coursier configuration directory")
113+
val coursierCredentials = EnvVar("COURSIER_CREDENTIALS", "Coursier credentials")
114+
val coursierExperimental = EnvVar("COURSIER_EXPERIMENTAL", "Experimental mode toggle")
115+
val coursierJni = EnvVar("COURSIER_JNI", "Coursier JNI toggle")
116+
val coursierMode = EnvVar("COURSIER_MODE", "Coursier mode (can be set to 'offline')")
117+
val coursierNoTerm = EnvVar("COURSIER_NO_TERM", "Terminal toggle")
118+
val coursierProgress = EnvVar("COURSIER_PROGRESS", "Progress bar toggle")
119+
val coursierRepositories = EnvVar("COURSIER_REPOSITORIES", "Coursier repositories")
120+
val coursierVendoredZis =
121+
EnvVar("COURSIER_VENDORED_ZIS", "Toggle io.github.scala_cli.zip.ZipInputStream")
122+
val csMavenHome = EnvVar("CS_MAVEN_HOME", "Coursier Maven home directory")
123+
val insideEmacs = EnvVar("INSIDE_EMACS", "Emacs toggle")
97124
}
98125

99126
object ScalaCli extends EnvVarGroup {

0 commit comments

Comments
 (0)