33 */
44
55plugins {
6- id ' nu.studer.plugindev' version ' 1.0.3'
7- id ' com.jfrog.bintray' version ' 1.8.4'
6+ /**
7+ * Plugin
8+ */
9+ id ' java-gradle-plugin'
10+ id ' com.gradle.plugin-publish' version ' 0.10.0'
811 /**
912 * Versioning applied to itself
1013 */
1114 id ' net.nemerosa.versioning' version ' 2.7.1'
15+ /**
16+ * Written in Groovy
17+ */
18+ id ' groovy'
1219}
1320
14- apply plugin : ' groovy'
15-
1621/**
1722 * Meta information
1823 */
@@ -28,62 +33,43 @@ ext {
2833 jgitVersion = ' 5.1.1.201809181055-r'
2934}
3035
36+ repositories {
37+ jcenter()
38+ }
39+
3140dependencies {
32- localGroovy()
41+ compile gradleApi()
42+ compile localGroovy()
3343 compile ' org.ajoberstar.grgit:grgit-core:3.0.0-rc.2'
3444 compile " org.eclipse.jgit:org.eclipse.jgit.ui:${ jgitVersion} "
3545 compile " org.eclipse.jgit:org.eclipse.jgit:${ jgitVersion} "
3646 compile ' org.tmatesoft.svnkit:svnkit:1.8.12'
3747 testCompile " junit:junit:4.12"
3848 testCompile " commons-lang:commons-lang:2.6"
3949 testCompile " commons-io:commons-io:2.5"
40-
41-
42-
4350}
4451
4552/**
4653 * Plug-in definition
4754 */
4855
49- plugindev {
50- pluginImplementationClass ' net.nemerosa.versioning.VersioningPlugin'
51- pluginDescription ' Gradle plug-in that computes version information from the SCM'
52- pluginLicenses ' MIT'
53- pluginTags ' gradle' , ' plugin' , ' scm' , ' git' , ' svn' , ' version'
54- authorId ' dcoraboeuf'
55- authorName ' Damien Coraboeuf'
56- authorEmail ' damien.coraboeuf@gmail.com'
57- projectUrl ' https://github.com/nemerosa/versioning'
58- projectInceptionYear ' 2015'
59- done()
56+ pluginBundle {
57+ website = ' https://github.com/nemerosa/versioning/'
58+ vcsUrl = ' https://github.com/nemerosa/versioning/'
59+ tags = [' gradle' , ' plugin' , ' scm' , ' git' , ' svn' , ' version' ]
6060}
6161
62- /**
63- * Plug-in publication
64- */
65-
66- bintray {
67- user = bintrayUser
68- key = bintrayApiKey
69- pkg {
70- repo = ' nemerosa'
71- version {
72- attributes = [
73- ' gradle-plugin' : ' net.nemerosa.versioning:net.nemerosa:versioning'
74- ]
62+ gradlePlugin {
63+ plugins {
64+ versioningPlugin {
65+ id = ' net.nemerosa.versioning'
66+ displayName = ' Versioning plugin for Gradle'
67+ description = ' Gradle plug-in that computes version information from the SCM'
68+ implementationClass = ' net.nemerosa.versioning.VersioningPlugin'
7569 }
7670 }
7771}
7872
79- /**
80- * Wrapper definition
81- */
82-
83- task wrapper (type : Wrapper ) {
84- gradleVersion = ' 2.13'
85- }
86-
8773test {
8874 environment " GIT_TEST_BRANCH" , " feature/456-cute"
8975 environment " SVN_TEST_BRANCH" , " feature-456-cute"
0 commit comments