Skip to content

Plugin 7.41.0 published with dependency on missing rewrite-bom:8.91.0 #476

Description

@aeolus

What version of OpenRewrite are you using?

I am using:

  • Gradle plugin org.openrewrite.rewrite v7.41.0
  • Published implementation artifact org.openrewrite:plugin:7.41.0
  • The plugin metadata requires org.openrewrite:rewrite-bom:8.91.0

How are you running OpenRewrite?

I am using the Gradle plugin via the Gradle Plugin Portal.

plugins {
    id("org.openrewrite.rewrite") version "7.41.0"
}

What is the smallest, simplest way to reproduce the problem?

Create a minimal Gradle project:

// settings.gradle.kts
pluginManagement {
    repositories {
        gradlePluginPortal()
        mavenCentral()
    }
}

dependencyResolutionManagement {
    repositories {
        mavenCentral()
    }
}

// build.gradle.kts
plugins {
    id("org.openrewrite.rewrite") version "7.41.0"
}

Then run:

./gradlew help --refresh-dependencies

Or inspect the published metadata directly:

  curl -fsSL https://plugins.gradle.org/m2/org/openrewrite/plugin/7.41.0/plugin-7.41.0.pom
  curl -fsSL https://plugins.gradle.org/m2/org/openrewrite/plugin/7.41.0/plugin-7.41.0.module
  curl -I https://repo.maven.apache.org/maven2/org/openrewrite/rewrite-bom/8.91.0/rewrite-bom-8.91.0.pom

The published plugin-7.41.0.pom imports:

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.openrewrite</groupId>
        <artifactId>rewrite-bom</artifactId>
        <version>8.91.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

The published plugin-7.41.0.module also requires:

  {
    "group": "org.openrewrite",
    "module": "rewrite-bom",
    "version": {
      "requires": "8.91.0"
    }
  }

However, Maven Central returns 404 for:

https://repo.maven.apache.org/maven2/org/openrewrite/rewrite-bom/8.91.0/rewrite-bom-8.91.0.pom

Maven Central metadata currently reports 8.90.4 as latest/release:

https://repo.maven.apache.org/maven2/org/openrewrite/rewrite-bom/maven-metadata.xml

What did you expect to see?

The Gradle plugin should resolve successfully from the Gradle Plugin Portal and Maven Central.

The published plugin metadata should reference an available rewrite-bom version, for example 8.90.4, or rewrite-
bom:8.91.0 should be published to Maven Central.

What did you see instead?

The plugin metadata for org.openrewrite:plugin:7.41.0 references org.openrewrite:rewrite-bom:8.91.0, but that
artifact is not available from Maven Central.

This can break dependency resolution for users who resolve the plugin from the Gradle Plugin Portal with Maven
Central as the repository for OpenRewrite artifacts.

What is the full stack trace of any errors you encountered?

The direct artifact check returns 404:

HTTP/2 404
x-amz-error-code: NoSuchKey
x-amz-error-detail-key: maven2/org/openrewrite/rewrite-bom/8.91.0/rewrite-bom-8.91.0.pom
x-amz-error-message: The specified key does not exist.

Are you interested in contributing a fix to OpenRewrite?

I’m happy to help verify a fixed plugin release or corrected publication metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions