enforcer-gradle-plugin
enforcer-gradle-plugin copied to clipboard
Exception occurs when uses enforcer.rules.RequireReleaseDeps (Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@43e485c of type BuildFlowService.Parameters)
I used the following build.gradle.kts `plugins { id("mws-kotlin-base") id("org.kordamp.gradle.project-enforcer") }
enforce { rule(enforcer.rules.RequireReleaseDeps::class.java) }
dependencies { api("::0.10.0-SNAPSHOT") }`
Exception:
`* What went wrong: Failed to query the value of property 'buildFlowServiceProperty'.
Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@43e485c of type BuildFlowService.Parameters A problem occurred configuring root project 'snapshot-checks-by-default'. > [AFTER_PROJECT :] An Enforcer rule has failed` after running gradle clean check
Gradle version:
`------------------------------------------------------------ Gradle 8.8
Build time: 2024-05-31 21:46:56 UTC Revision: 4bd1b3d3fc3f31db5a26eecb416a165b8cc36082
Kotlin: 1.9.22 Groovy: 3.0.21 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.1 (Eclipse Adoptium 21.0.1+12-LTS) OS: Linux 6.8.0-40-generic amd64`
What's the problem here? The project has a snapshot dependency and the enforcer ahs a rule that bans such dependencies.