plugins { id "java-gradle-plugin" id "com.gradle.plugin-publish" version "0.20.0" // Apply the Maven Publish Plugin to have it generate the publication metadata id 'maven-publish' } repositories { mavenCentral() } gradlePlugin { plugins { mercurialPlugin { id = 'org.implab.gradle-mercurial' implementationClass = 'org.implab.gradle.mercurial.MercurialPlugin' } } } pluginBundle { website = 'https://code.implab.org/implab/gradle-mercurial-plugin' vcsUrl = 'https://code.implab.org/implab/gradle-mercurial-plugin' plugins { mercurialPlugin { displayName = "Integrates mercurial into the build script" description = 'Automatically calculates version using tags. Simple wrapper around cli.' tags = ['hg', 'mercurial', 'versioning'] } } } task printVersion { doLast { println "${->jar.archiveFileName.get()}" } }