You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by ch...@apache.org on 2026/06/13 11:30:13 UTC
(fory) 01/01: fix(scala): preserve local maven resolver
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 <sh...@gmail.com>
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: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org