spring-gradle-plugins / dependency-management-plugin

A Gradle plugin that provides Maven-like dependency management functionality
684 stars 85 forks source link

Upgrading to 1.1.4 caused builds to randomly hangs indefinitely #370

Closed myuwono closed 7 months ago

myuwono commented 7 months ago

When we upgrade spring dependency management from 1.1.3 -> 1.1.4 we started noticing our build randomly hangs.

Enabling info log, the last thing that was printed were Resolving global dependency management for project 'config'

The build looks something like so

plugins {
  id("io.atlassian.identity.java-conventions")
  alias(libs.plugins.kotlin.jvm)
  alias(libs.plugins.kotlin.spring)
  alias(libs.plugins.springframework.boot) 
}

dependencies {
  implementation(project(":service:common"))
  implementation(project(":service:observability"))

  testImplementation(project(":service:common-test", "test"))
}

tasks.forEach { task ->
  if (task.name.startsWith("boot")) {
    task.enabled = false
  }
}

in the parent build gradle it has something like

plugins {
  id("idea")
  id("io.atlassian.identity.java-conventions")
  alias(libs.plugins.kotlin.jvm)
  alias(libs.plugins.ktlint)
  alias(libs.plugins.spring.dependencyManagement)
}

allprojects {
  apply(plugin = "io.spring.dependency-management")

  configure<StandardDependencyManagementExtension> {
    applyMavenExclusions(false)
  }
}

It somehow appears that the process somehow went into an infinite loop.

This happens randomly but frequently in the internal build, I'll try to make a reproducible github repo as soon as I get some time.

wilkinsona commented 7 months ago

Thanks for the report. A reproducible example would be very useful please. Failing that, please take some thread dumps of the Gradle process when the build appears to be hung and share them here.

spring-projects-issues commented 7 months ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 7 months ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.