This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to tag v1.2.0-rc1
in repository https://gitbox.apache.org/repos/asf/fory.git

commit 3153eecb27263a048b2ab85d613013efabaaedfd
Author: chaokunyang <[email protected]>
AuthorDate: Sat Jun 13 19:19:30 2026 +0800

    fix(scala): preserve local maven resolver
---
 scala/build.sbt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scala/build.sbt b/scala/build.sbt
index 6df7aec07..4331a7e7b 100644
--- a/scala/build.sbt
+++ b/scala/build.sbt
@@ -18,8 +18,10 @@
 
 val foryVersion = "1.2.0"
 val scala213Version = "2.13.15"
-val foryMavenLocal =
-  sys.env.get("FORY_SCALA_MAVEN_LOCAL").map(file).getOrElse(Path.userHome / 
".m2" / "repository")
+val foryLocalResolver = sys.env.get("FORY_SCALA_MAVEN_LOCAL") match {
+  case Some(path) => Resolver.file("fory-maven-local", 
file(path))(Resolver.mavenStylePatterns)
+  case None       => Resolver.mavenLocal
+}
 ThisBuild / apacheSonatypeProjectProfile := "fory"
 version := foryVersion
 scalaVersion := scala213Version
@@ -43,7 +45,7 @@ lazy val root = Project(id = "fory-scala", base = file("."))
 ThisBuild / externalResolvers := Seq(
   Resolver.mavenCentral,
   Resolver.ApacheMavenSnapshotsRepo,
-  Resolver.file("fory-maven-local", 
foryMavenLocal)(Resolver.mavenStylePatterns),
+  foryLocalResolver,
 )
 
 libraryDependencies ++= Seq(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to