Can a non open source plugin be published in the portal?


(Justin) #1

Hi,

We have a copyrighted and non open source plugin that resides in an internal git repo. Can we publish to the plugin portal for our customer’s to use or do we have to provide our own plugin repo?

I have only seen the plugin submit docs and blog article and neither readily address this question.

Thanks!


(Tom Dunstan) #2

Hi Justin

Yes, you can publish a plugin with a commercial license to the portal.

Note that by default the plugin publishing plugin will attempt to publish a plugin’s sources. To stop that from happening, you will generally want to do something like this in your plugin’s build script:

configurations.archives.artifacts.clear()
artifacts {
    add("archives", jar)
}

That assumes that the task that creates your plugin is named jar. If it’s e.g. proguard you would add that task to the archives configuration instead.

Hope that helps.

Tom