Skip to content

Commit eeebd78

Browse files
authored
Merge pull request #77 from rubensousa/release
Update changelog and readme for next release
2 parents e4972aa + d89b9c5 commit eeebd78

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
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

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6685
Denies 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

0 commit comments

Comments
 (0)