Closed imvs closed 2 months ago
hi, do you have multiple gradle modules on your project?
hi, do you have multiple gradle modules on your project?
No, i haven't. I think it becaus of id("org.jetbrains.intellij.platform") version "2.0.1" and this section
dependencies {
intellijPlatform {
intellijIdeaCommunity("2023.2.6")
bundledPlugin("com.intellij.java")
instrumentationTools()
pluginVerifier()
zipSigner()
}
// ...
Error is gone If remove plugin and it configurations
I tryed to debug. Task:
tasks.register("debugDependencies") {
try {
println("From SnapshotDependenciesChecker.groovy - throws error")
Collection<String> allDependenciesVersions = project.allprojects.collect { project ->
project.configurations.collect { config ->
println("config: " + config.name)
config.allDependencies
.findAll { dep ->
println("\tdependency: " + dep.name)
dep.version?.endsWith("-SNAPSHOT")
}.collect { dep -> "${dep.group}:${dep.name}:${dep.version}".toString() } +
config.allDependencyConstraints.findAll { dependency ->
dependency.version?.endsWith("-SNAPSHOT")
}.collect { dep -> "${dep.group}:${dep.name}:${dep.version}".toString() }
}
}.flatten().unique() as Collection<String>
println("allDependenciesVersions: " + allDependenciesVersions.toString())
} catch (Throwable e) {
println("Throwable: " + e)
e.printStackTrace()
}
println("--------------------")
println("Doesn't throws error")
Collection<Configuration> configurations = project.allprojects.collect { it.configurations.collect { it } }.flatten() as Collection<Configuration>
Collection<String> allDependenciesVersions1 = configurations.collect { config ->
println("config: " + config.name)
config.allDependencies
.findAll { dependency ->
println("\tdependency: " + dependency.name)
dependency.version?.endsWith("-SNAPSHOT")
}
.collect { dependency -> "${dependency.group}:${dependency.name}:${dependency.version}".toString() } +
config.allDependencyConstraints.findAll { dependency ->
dependency.version?.endsWith("-SNAPSHOT")
}
.collect { dependency -> "${dependency.group}:${dependency.name}:${dependency.version}".toString() }
}.flatten().unique() as Collection<String>
println("allDependenciesVersions1: " + allDependenciesVersions1.toString())
}
great, thanks for PR, I'll release it today
verifyRelease error
``` Execution failed for task ':verifyRelease'. > Failed to calculate the value of task ':verifyRelease' property 'snapshotDependencies'. > java.util.ConcurrentModificationException (no error message) * Try: > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':verifyRelease'. at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314) at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48) Caused by: org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':verifyRelease' property 'snapshotDependencies'. at org.gradle.api.internal.provider.AbstractProperty.finalizeNow(AbstractProperty.java:284) at org.gradle.api.internal.provider.AbstractProperty.lambda$beforeRead$0(AbstractProperty.java:276) at org.gradle.api.internal.provider.ValueState.finalizeOnReadIfNeeded(ValueState.java:139) at org.gradle.api.internal.provider.AbstractProperty.beforeRead(AbstractProperty.java:276) at org.gradle.api.internal.provider.AbstractProperty.beforeRead(AbstractProperty.java:268) at org.gradle.api.internal.provider.AbstractProperty.calculatePresence(AbstractProperty.java:79) at org.gradle.api.internal.provider.AbstractMinimalProvider.isPresent(AbstractMinimalProvider.java:90) at org.gradle.api.internal.tasks.properties.AbstractValidatingProperty.isPresent(AbstractValidatingProperty.java:85) at org.gradle.api.internal.tasks.properties.AbstractValidatingProperty.validate(AbstractValidatingProperty.java:71) at org.gradle.api.internal.tasks.properties.DefaultTaskProperties.validate(DefaultTaskProperties.java:151) at org.gradle.api.internal.tasks.execution.TaskExecution.validate(TaskExecution.java:466) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:76) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:56) at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64) at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43) at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125) at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56) at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38) at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36) at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23) at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75) at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41) at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35) at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289) at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31) at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22) at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40) at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23) at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67) at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67) at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39) at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46) at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34) at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48) at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35) at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314) at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48) Caused by: java.util.ConcurrentModificationException at org.gradle.api.internal.DefaultDomainObjectCollection$IteratorImpl.next(DefaultDomainObjectCollection.java:467) at pl.allegro.tech.build.axion.release.domain.SnapshotDependenciesChecker$_snapshotVersions_closure2.doCall$original(SnapshotDependenciesChecker.groovy:12) at pl.allegro.tech.build.axion.release.domain.SnapshotDependenciesChecker$_snapshotVersions_closure2.doCall(SnapshotDependenciesChecker.groovy) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at pl.allegro.tech.build.axion.release.domain.SnapshotDependenciesChecker.snapshotVersions(SnapshotDependenciesChecker.groovy:11) at pl.allegro.tech.build.axion.release.domain.SnapshotDependenciesChecker$snapshotVersions.call(Unknown Source) at pl.allegro.tech.build.axion.release.ReleasePlugin$_apply_closure2$_closure11.doCall$original(ReleasePlugin.groovy:36) at pl.allegro.tech.build.axion.release.ReleasePlugin$_apply_closure2$_closure11.doCall(ReleasePlugin.groovy) at pl.allegro.tech.build.axion.release.ReleasePlugin$_apply_closure2$_closure11.doCall$original(ReleasePlugin.groovy) at pl.allegro.tech.build.axion.release.ReleasePlugin$_apply_closure2$_closure11.doCall(ReleasePlugin.groovy) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72) at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateValue(AbstractMinimalProvider.java:115) at org.gradle.api.internal.provider.Collectors$ElementsFromCollectionProvider.collectEntries(Collectors.java:280) at org.gradle.api.internal.provider.AbstractCollectionProperty$CollectingSupplier.calculateValue(AbstractCollectionProperty.java:500) at org.gradle.api.internal.provider.AbstractCollectionProperty.finalValue(AbstractCollectionProperty.java:311) at org.gradle.api.internal.provider.AbstractCollectionProperty.finalValue(AbstractCollectionProperty.java:79) at org.gradle.api.internal.provider.AbstractProperty.finalizeNow(AbstractProperty.java:281) ... 65 more BUILD FAILED in 8s 1 actionable task: 1 executed ```gradle versions: 8.8, 8.10.1
build.gradle
``` plugins { id("java") id("org.jetbrains.intellij.platform") version "2.0.1" id("pl.allegro.tech.build.axion-release") version "1.18.8" } group = "com.github.imvs" project.version = scmVersion.version repositories { mavenCentral() intellijPlatform { defaultRepositories() } } dependencies { intellijPlatform { intellijIdeaCommunity("2023.2.6") bundledPlugin("com.intellij.java") instrumentationTools() pluginVerifier() zipSigner() } implementation("org.springframework.cloud:spring-cloud-config-server:4.1.0") { exclude group: "org.springframework.boot", module: "spring-boot-starter-web" exclude group: "org.springframework.boot", module: "spring-boot-starter-validation" exclude group: "org.springframework.security", module: "spring-security-crypto" exclude group: "ORG.APACHE.SSHD", module: "" exclude group: "org.slf4j", module: "" } compileOnly files("libs/forms_rt.jar") compileOnly "org.projectlombok:lombok:1.18.32" annotationProcessor "org.projectlombok:lombok:1.18.32" testCompileOnly "org.projectlombok:lombok:1.18.32" testAnnotationProcessor "org.projectlombok:lombok:1.18.32" testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.2" testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.7.2" } intellijPlatform { pluginVerification { ides { recommended() } } } java { sourceCompatibility = "17" targetCompatibility = "17" } tasks { signPlugin { certificateChain.set(project.property("signPlugin.certificateChain").toString()) privateKey.set(project.property("signPlugin.privateKey").toString()) password.set(project.property("signPlugin.password").toString()) } publishPlugin { token.set(project.property("publishPlugin.publishToken").toString()) } patchPluginXml { sinceBuild = provider { "232.10300" } untilBuild = provider { null } } } test { useJUnitPlatform() } ```