Skip to content

Commit

Permalink
Merge pull request #505 from RustedBones/project-structure
Browse files Browse the repository at this point in the history
[scala3] Use standard project structure
  • Loading branch information
adamw authored Jan 10, 2024
2 parents a8b0b33 + 6b4ef79 commit b5f2e6f
Show file tree
Hide file tree
Showing 38 changed files with 3 additions and 11 deletions.
9 changes: 3 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ lazy val root =
(core.projectRefs ++ examples.projectRefs ++ test.projectRefs): _*
)

lazy val core = (projectMatrix in file(".core"))
lazy val core = (projectMatrix in file("core"))
.settings(commonSettings)
.settings(
name := "magnolia",
Compile / scalaSource := baseDirectory.value / ".." / ".." / ".." / "src" / "core",
mimaPreviousArtifacts := {
val current = version.value
val isRcOrMilestone = current.contains("M") || current.contains("RC")
Expand All @@ -56,19 +55,18 @@ lazy val core = (projectMatrix in file(".core"))
.jsPlatform(scalaVersions = List(scala3))
.nativePlatform(scalaVersions = List(scala3))

lazy val examples = (projectMatrix in file(".examples"))
lazy val examples = (projectMatrix in file("examples"))
.dependsOn(core)
.settings(commonSettings)
.settings(
name := "magnolia-examples",
Compile / scalaSource := baseDirectory.value / ".." / ".." / ".." / "src" / "examples",
publishArtifact := false
)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = List(scala3))
.nativePlatform(scalaVersions = List(scala3))

lazy val test = (projectMatrix in file(".test"))
lazy val test = (projectMatrix in file("test"))
.dependsOn(examples)
.settings(commonSettings)
.settings(
Expand All @@ -78,7 +76,6 @@ lazy val test = (projectMatrix in file(".test"))
"org.scalameta" %%% "munit" % "1.0.0-M6"
),
testFrameworks += new TestFramework("munit.Framework"),
Test / scalaSource := baseDirectory.value / ".." / ".." / ".." / "src" / "test",
publishArtifact := false
)
.jvmPlatform(scalaVersions = List(scala3))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/test/WeekDay.java

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b5f2e6f

Please sign in to comment.