plugins { id 'java-gradle-plugin' id 'opensearch.pluginzip' } group="org.custom.group" version='2.0.0.0' // A bundlePlugin task mockup tasks.register('bundlePlugin', Zip.class) { archiveFileName = "sample-plugin-${version}.zip" destinationDirectory = layout.buildDirectory.dir('distributions') from layout.projectDirectory.file('sample-plugin-source.txt') } publishing { publications { pluginZip(MavenPublication) { groupId = "I.am.customized" pom { name = "sample-plugin" description = "pluginDescription" licenses { license { name = "The Apache License, Version 2.0" url = "http://www.apache.org/licenses/LICENSE-2.0.txt" } } developers { developer { name = "John Doe" url = "https://github.com/john-doe/" organization = "Doe.inc" organizationUrl = "https://doe.inc/" } } url = "https://github.com/doe/sample-plugin" scm { url = "https://github.com/doe/sample-plugin" } } } } }