unmock-plugin icon indicating copy to clipboard operation
unmock-plugin copied to clipboard

Support declarative plugin syntax

Open matejdro opened this issue 6 years ago • 5 comments

Add plugin to Gradle's plugin repository, so it can be added to the project declaratively like this:

plugins {
    id 'de.mobilej.unmock' version '0.7.3'
}

This allows the plugin to be used with kotlin gradle scripts (kts).

matejdro avatar Aug 07 '19 06:08 matejdro

Thanks for the suggestion - do you have any link on documentation on how to add to the Gradle plugin repository?

In the meantime it should be possible to use the plugin in kts like this: apply<de.mobilej.unmock.UnMockPlugin>() after the plugins code block

bjoernQ avatar Aug 29 '19 13:08 bjoernQ

I think this is the proper link: https://guides.gradle.org/publishing-plugins-to-gradle-plugin-portal/

matejdro avatar Aug 29 '19 13:08 matejdro

thanks for the link - seems it's what I was looking for

bjoernQ avatar Sep 03 '19 08:09 bjoernQ

Is there update on this please? If not, then is there anything I can do to help with it? :)

Ezard avatar Apr 24 '23 18:04 Ezard

Funnily enough, we have gone full circle and this syntax is now obsolete, with Gradle recommending use of convention plugins to configure projects (which use old module syntax).

So, from my side, I do not need this anymore, but I can keep the issue open if the rest want it.

matejdro avatar Apr 25 '23 04:04 matejdro