Skip to content

build: the :daemon buildscript asks Maven Central for plugin modules that only the Plugin Portal has #307

Open

Description

@sergej-koscejev

Problem

daemon/build.gradle.kts declares buildscript { repositories { mavenCentral() } } for the ASM classpath of checkDaemonRelocation. Gradle searches the buildscript repositories before the plugin repositories from settings.gradle.kts, so the :daemon classpath configuration first asks Maven Central for every plugin module, including those that only exist on the Gradle Plugin Portal.

With --refresh-dependencies --debug, ./gradlew help shows four HEAD requests to Maven Central that return 404:

Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/com/specificlanguages/jbr-toolchain/1.3.0/jbr-toolchain-1.3.0.pom]
Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/com/specificlanguages/jbr-toolchain/com.specificlanguages.jbr-toolchain.gradle.plugin/1.3.0/com.specificlanguages.jbr-toolchain.gradle.plugin-1.3.0.pom]
Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/com/specificlanguages/mps-platform-cache/1.0.4/mps-platform-cache-1.0.4.pom]
Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/com/specificlanguages/mps-platform-cache/com.specificlanguages.mps-platform-cache.gradle.plugin/1.0.4/com.specificlanguages.mps-platform-cache.gradle.plugin-1.0.4.pom]

Gradle caches a missing module for 24 hours, so CI jobs that restore an older Gradle user home send these requests again. These are the same kind of requests as the missing plugin marker jars that Maven Central answered with 429 and 403 (runs 44124256664, 44134812584, 44608914710; fixed in #305). No CI failure has come from these four URLs so far.

Options

  • Limit the buildscript repository to the ASM group, for example mavenCentral { content { includeGroup("org.ow2.asm") } }.
  • Drop the buildscript repository and resolve ASM from the plugin repositories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions