Skip to content

Commit

Permalink
Merge pull request #571 from armanbilge/feature/cross-root-project-co…
Browse files Browse the repository at this point in the history
…nfigure-subprojects

Allow to independently configure components of `CrossRootProject`
  • Loading branch information
armanbilge authored Jun 28, 2023
2 parents c7a1877 + e52fec9 commit 11eccc2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions ci/src/main/scala/org/typelevel/sbt/CrossRootProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,38 @@ final class CrossRootProject private (
native.configure(transforms: _*)
)

def configureRoot(transforms: (Project => Project)*): CrossRootProject =
new CrossRootProject(
all.configure(transforms: _*),
jvm,
js,
native
)

def configureJVM(transforms: (Project => Project)*): CrossRootProject =
new CrossRootProject(
all,
jvm.configure(transforms: _*),
js,
native
)

def configureJS(transforms: (Project => Project)*): CrossRootProject =
new CrossRootProject(
all,
jvm,
js.configure(transforms: _*),
native
)

def configureNative(transforms: (Project => Project)*): CrossRootProject =
new CrossRootProject(
all,
jvm,
js,
native.configure(transforms: _*)
)

def enablePlugins(ns: Plugins*): CrossRootProject =
new CrossRootProject(
all.enablePlugins(ns: _*),
Expand Down

0 comments on commit 11eccc2

Please sign in to comment.