File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 11
22# CHANGELOG
33
4+ ## 1.0.0-beta04 (2026-03-06)
5+
6+ - Added option to include ` projectGuardCheck ` as part of the build tasks with the following:
7+
8+ ``` kotlin
9+ projectGuard {
10+ options {
11+ lifecycleTask = LifecycleTask .ASSEMBLE // Or LifecycleTask.CHECK
12+ }
13+ }
14+ ```
15+
16+ - Fixed some tasks not being cached correctly
17+
418## 1.0.0-beta03 (2026-03-03)
519
620- Most of plugin's tasks are now cacheable
Original file line number Diff line number Diff line change @@ -61,6 +61,25 @@ ProjectGuard protects your project's architecture by enforcing dependency rules
6161
6262## How-to
6363
64+
65+ ### Decide when you want to validate the rules
66+
67+ ```kotlin
68+ projectGuard {
69+ options {
70+ // Default behavior: no immediate validation checks.
71+ // Use `./gradlew projectGuardAggregateCheck` manually
72+ lifecycleTask = null
73+
74+ // This will validate the rules during the assemble lifecycle task
75+ lifecycleTask = LifecycleTask.ASSEMBLE
76+
77+ // This will validate the rules during the check lifecycle task
78+ lifecycleTask = LifecycleTask.CHECK
79+ }
80+ }
81+ ```
82+
6483### ` guard `
6584
6685Denies a set of dependencies for any module that matches the provided path.
@@ -91,6 +110,10 @@ projectGuard {
91110 allow(" :domain" ) // Allow depending on other :domain modules
92111 allow(libs.junit) // Allow JUnit for testing
93112 }
113+ restrictModule(" :feature" ) {
114+ allow(" :domain" )
115+ allowExternalLibraries()
116+ }
94117}
95118```
96119
You can’t perform that action at this time.
0 commit comments