Skip to content
Merged
Prev Previous commit
Next Next commit
Refactoring to the right multi-project sbt structure
  • Loading branch information
SemyonSinchenko committed Jul 17, 2025
commit c85024bdaa7e873f7c0dca8d830e2886ddfbea8a
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ lazy val commonSetting = Seq(
else
"-Wunused:imports"))

lazy val root = (project in file("."))
lazy val core = (project in file("graphframes-core"))
.settings(
commonSetting,
name := "graphframes",
Expand All @@ -123,7 +123,7 @@ lazy val root = (project in file("."))
Compile / packageSrc / publishArtifact := true)

lazy val connect = (project in file("graphframes-connect"))
.dependsOn(root)
.dependsOn(core)
.settings(
name := s"graphframes-connect",
moduleName := s"${name.value}-spark${sparkMajorVer}",
Expand Down
4 changes: 2 additions & 2 deletions python/dev/build_jar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def build(spark_versions: Sequence[str] = ["3.5.5"]):
sbt_build_command = [
sbt_executable,
f"-Dspark.version={spark_version}",
"clean",
"package",
"core/clean",
"core/package",
"connect/clean",
"connect/package"
]
Expand Down
2 changes: 1 addition & 1 deletion python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_gf_jar_locations() -> Tuple[str, str]:
this function will raise an exception!
"""
project_root = pathlib.Path(__file__).parent.parent.parent
core_dir = project_root / "target" / f"scala-{scala_version}"
core_dir = project_root / "graphframes-core" / "target" / f"scala-{scala_version}"
connect_dir = project_root / "graphframes-connect" / "target" / f"scala-{scala_version}"

core_jar: Optional[str] = None
Expand Down