Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianAN authored Jan 13, 2025
2 parents 1f01a0e + 7fbf527 commit 55deddb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ lazy val cliSettings = Seq(
Dependencies.coursier,
Dependencies.coursierJvm,
Dependencies.dependency,
Dependencies.directoriesJni,
Dependencies.jsoniterCore,
Dependencies.svm % Provided,
Dependencies.jsoniterMacros % Provided
Expand Down
11 changes: 6 additions & 5 deletions cli/src/main/scala/bloop/cli/Directories.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package bloop.cli

import bloop.cli.util.JniGetWinDirs
import coursier.cache.shaded.dirs.{GetWinDirs, ProjectDirectories}
import dev.dirs.ProjectDirectories
import dev.dirs.impl.Windows;
import dev.dirs.jni.WindowsJni;

import scala.util.Properties

Expand Down Expand Up @@ -31,11 +32,11 @@ object Directories {
}

def default(): Directories = {
val getWinDirs: GetWinDirs =
val getWinDirs =
if (coursier.paths.Util.useJni())
new JniGetWinDirs
WindowsJni.getJdkAwareSupplier();
else
GetWinDirs.powerShellBased
Windows.getDefaultSupplier();

OsLocations(ProjectDirectories.from(null, null, "ScalaCli", getWinDirs))
}
Expand Down
18 changes: 0 additions & 18 deletions cli/src/main/scala/bloop/cli/util/JniGetWinDirs.java

This file was deleted.

3 changes: 2 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object Dependencies {
val lmVersion = "1.10.3"
val configDirsVersion = "26"
val caseAppVersion = "2.0.6"
val coursierVersion = "2.1.23"
val coursierVersion = "2.1.24"
val sourcecodeVersion = "0.4.2"
val sbtTestInterfaceVersion = "1.0"
val sbtTestAgentVersion = "1.10.7"
Expand Down Expand Up @@ -63,6 +63,7 @@ object Dependencies {
val coursier = "io.get-coursier" %% "coursier" % coursierVersion
val coursierJvm = "io.get-coursier" %% "coursier-jvm" % coursierVersion
val dependency = "io.get-coursier" %% "dependency" % "0.3.2"
val directoriesJni = "io.get-coursier.util" % "directories-jni" % "0.1.3"
val scalaCollectionCompat = "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0"
val shapeless = "com.chuusai" %% "shapeless" % shapelessVersion
val caseApp = "com.github.alexarchambault" %% "case-app" % caseAppVersion
Expand Down

0 comments on commit 55deddb

Please sign in to comment.