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