Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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) #34

Open
man85 opened this issue Sep 10, 2024 · 1 comment

Comments

@man85
Copy link

man85 commented Sep 10, 2024

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`

@man85 man85 changed the title Exception occurs when uses enforcer.rules.RequireReleaseDeps 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) Sep 10, 2024
@aalmiray
Copy link
Contributor

What's the problem here? The project has a snapshot dependency and the enforcer ahs a rule that bans such dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants