Skip to content

Unlock plugins {...} syntax: publish plugin markers to Sonatype OSSRH (Maven Central) #1004

@vlsi

Description

@vlsi

Gradle plugins are usable with plugins {...} syntax if they have plugin markers
Currently app-gradle-plugin does not publish one, so the users struggle.

It would be great if the markers were published.


Currently, app-gradle-plugin uses maven to publish to Nexus. maven is deprecated for a long time, and it is probably time to migrate to maven-publish


I don't know the way you publish/release, and I don't want to interrupt workflows, however, I guess the following might be a sane plan:

  • Bump Gradle (e.g. to 6.8.2)
  • Use maven-publish for publishing
  • Use Gradle's java-gradle-plugin for plugin marker generation
  • Use https://github.com/gradle-nexus/publish-plugin for Nexus staging. Just in case, staging enables you to create a "staging" repository, push multiple artifacts and release them at once (or drop the staged repo)
  • Use Kotlin DSL for Gradle for less magic and better autocomplete

WDYT?

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