Skip to content

Gradle plugin marker artifacts are not published since 1.0.0 #247

Description

@kirich1409

Problem

The Gradle plugin marker artifacts for both plugin ids are missing from Maven Central (and Gradle Plugin Portal) for releases 1.0.0, 1.1.0, and 1.1.1. The only version with published markers is 1.0.0-Beta1:

  • dev.androidbroadcast.featured:dev.androidbroadcast.featured.gradle.pluginmaven-metadata.xml lists only 1.0.0-Beta1
  • dev.androidbroadcast.featured.application:dev.androidbroadcast.featured.application.gradle.plugin — never published at all

The implementation artifact dev.androidbroadcast.featured:featured-gradle-plugin:1.1.1 IS published and contains both plugin descriptors (META-INF/gradle-plugins/dev.androidbroadcast.featured.properties and ...featured.application.properties), so only the marker POMs are missing.

Impact

The documented plugins { id("dev.androidbroadcast.featured") version "1.1.1" } / version-catalog plugin alias usage fails to resolve, because the plugins {} DSL resolves plugins via marker artifacts.

Workaround

// settings.gradle.kts
pluginManagement {
    resolutionStrategy {
        eachPlugin {
            if (requested.id.id.startsWith("dev.androidbroadcast.featured")) {
                useModule("dev.androidbroadcast.featured:featured-gradle-plugin:${requested.version}")
            }
        }
    }
}

Expected

Marker artifacts published for both plugin ids on every release (e.g. via java-gradle-plugin's automated marker publication / gradlePlugin {} block with the maven-publish plugin).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions