Skip to content

Releases: alejandrohdezma/sbt-modules

v0.3.2

10 Aug 10:52
2935ba0
Compare
Choose a tag to compare

📈 Dependency updates

Full Changelog: v0.3.1...v0.3.2

v0.3.1

30 Mar 08:43
9cf7f05
Compare
Choose a tag to compare

What's Changed

🚀 New features

Full Changelog: v0.3.0...v0.3.1

v0.3.0

29 Jan 11:07
7379ca0
Compare
Choose a tag to compare

What's Changed

🚀 New features

  • Add utility extension method to simplify adding settings for specific scala versions by @alejandrohdezma in #204

Full Changelog: v0.2.0...v0.3.0

v0.2.0

08 Apr 16:45
f0ed198
Compare
Choose a tag to compare

What's changed

Ensure no warnings are thrown when using it in SBT 1.5.0.

📈 Dependency updates

Contributors to this release

@alejandrohdezma

v0.1.0

04 Jun 18:37
10fd284
Compare
Choose a tag to compare

First release of the plugin

Installation

Add the following line to your plugins.sbt file:

addSbtPlugin("com.alejandrohdezma" % "sbt-modules" % "0.1.0")

Usage

Use module instead of project to create your SBT modules. Unlike project, module expects your modules to live in modules folder and uses the name of the variable for the project's ID and base folder (just like project does).

- skip in publish := true
- 
lazy val docs = project
-  .settings(skip in publish := true)
-  .dependsOn(allProjects: _*)
+  .dependsOn(allModules: _*)
  .in(file("docs"))

+ lazy val `my-library-core` = module
- lazy val core = project
-   .in(file("modules/core"))
-   .settings(name := "my-library-core")

+ lazy val `my-library-plugin` = module 
- lazy val plugin = project
-   .in(file("modules/plugin"))
-   .settings(name := "my-library-plugin")
-   .dependsOn(core)
+   .dependsOn(`my-library-core`)
-
- lazy val allProjects: Seq[ClasspathDep[ProjectReference]] = Seq(
-   core,
-   plugin
- )

For more information, visit the README