@@ -201,14 +201,31 @@ tasks.jacocoTestReport {
201201 files(classDirectories.files.map {
202202 fileTree(it) {
203203 exclude(
204- " **/config/**" ,
204+ // Infrastructure - config and cross-cutting concerns
205+ " **/infrastructure/config/**" ,
206+ " **/infrastructure/security/**" ,
207+ " **/infrastructure/resolver/**" ,
208+ " **/infrastructure/persistence/**" ,
209+ " **/infrastructure/adapter/**" ,
210+ // DTOs, requests, responses, mappers (data carriers)
205211 " **/dto/**" ,
206- " **/enums/**" ,
207- " **/exceptions/**" ,
212+ " **/request/**" ,
213+ " **/response/**" ,
214+ " **/mapper/**" ,
215+ // Domain value objects and events
216+ " **/domain/model/*Id.class" ,
217+ " **/domain/model/*Name.class" ,
218+ " **/domain/model/*Role.class" ,
219+ " **/domain/event/**" ,
220+ // Shared kernel and local utilities
221+ " **/shared/**" ,
222+ // Interfaces layer (controllers, REST)
223+ " **/interfaces/rest/**" ,
224+ " **/interfaces/grpc/**" ,
225+ // Application entry point
208226 " **/*Application*" ,
209- // gRPC generated code exclusions
210- " **/grpc/**" ,
211- " **/proto/**" , // Proto-related generated classes
227+ // Generated code
228+ " **/proto/**" ,
212229 " **/generated/**"
213230 )
214231 }
@@ -225,24 +242,44 @@ tasks.jacocoTestCoverageVerification {
225242 }
226243 rule {
227244 element = " CLASS"
228- includes = listOf (" org.nkcoder.service.*" )
245+ includes = listOf (
246+ " org.nkcoder.auth.application.service.*" ,
247+ " org.nkcoder.user.application.service.*"
248+ )
229249 limit {
230250 minimum = " 0.80" .toBigDecimal()
231251 }
232252 }
233253 classDirectories.setFrom(
234- // Same exclusions for verification
254+ // Same exclusions as jacocoTestReport
235255 files(classDirectories.files.map {
236256 fileTree(it) {
237257 exclude(
238- " **/config/**" ,
258+ // Infrastructure - config and cross-cutting concerns
259+ " **/infrastructure/config/**" ,
260+ " **/infrastructure/security/**" ,
261+ " **/infrastructure/resolver/**" ,
262+ " **/infrastructure/persistence/**" ,
263+ " **/infrastructure/adapter/**" ,
264+ // DTOs, requests, responses, mappers (data carriers)
239265 " **/dto/**" ,
240- " **/enums/**" ,
241- " **/exception/**" ,
266+ " **/request/**" ,
267+ " **/response/**" ,
268+ " **/mapper/**" ,
269+ // Domain value objects and events
270+ " **/domain/model/*Id.class" ,
271+ " **/domain/model/*Name.class" ,
272+ " **/domain/model/*Role.class" ,
273+ " **/domain/event/**" ,
274+ // Shared kernel and local utilities
275+ " **/shared/**" ,
276+ // Interfaces layer (controllers, REST)
277+ " **/interfaces/rest/**" ,
278+ " **/interfaces/grpc/**" ,
279+ // Application entry point
242280 " **/*Application*" ,
243-
281+ // Generated code
244282 " **/proto/**" ,
245- " **/grpc/**" ,
246283 " **/generated/**"
247284 )
248285 }
0 commit comments