@@ -0,0 +1,5 | |||
|
1 | subprojects { p -> | |
|
2 | plugins.withId('java') { | |
|
3 | p.archivesBaseName = "$rootProject.name-$p.name"; | |
|
4 | } | |
|
5 | } No newline at end of file |
@@ -1,6 +1,8 | |||
|
1 | 1 | plugins { |
|
2 | 2 | id "java-gradle-plugin" |
|
3 |
id "com.gradle.plugin-publish" version "0. |
|
|
3 | id "com.gradle.plugin-publish" version "0.20.0" | |
|
4 | // Apply the Maven Publish Plugin to have it generate the publication metadata | |
|
5 | id 'maven-publish' | |
|
4 | 6 | } |
|
5 | 7 | |
|
6 | 8 | repositories { |
@@ -12,8 +14,6 gradlePlugin { | |||
|
12 | 14 | mercurialPlugin { |
|
13 | 15 | id = 'org.implab.gradle-mercurial' |
|
14 | 16 | implementationClass = 'org.implab.gradle.mercurial.MercurialPlugin' |
|
15 | displayName = "Integrates mercurial into the build script" | |
|
16 | description = 'Automatically calculates version using tags. Simple wrapper around cli.' | |
|
17 | 17 | } |
|
18 | 18 | } |
|
19 | 19 | } |
@@ -22,5 +22,17 pluginBundle { | |||
|
22 | 22 | website = 'https://code.implab.org/implab/gradle-mercurial-plugin' |
|
23 | 23 | vcsUrl = 'https://code.implab.org/implab/gradle-mercurial-plugin' |
|
24 | 24 | |
|
25 | tags = ['hg', 'mercurial'] | |
|
25 | plugins { | |
|
26 | mercurialPlugin { | |
|
27 | displayName = "Integrates mercurial into the build script" | |
|
28 | description = 'Automatically calculates version using tags. Simple wrapper around cli.' | |
|
29 | tags = ['hg', 'mercurial', 'versioning'] | |
|
30 | } | |
|
31 | } | |
|
26 | 32 | } |
|
33 | ||
|
34 | task printVersion { | |
|
35 | doLast { | |
|
36 | println "${->jar.archiveFileName.get()}" | |
|
37 | } | |
|
38 | } No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now