-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28b1cdb
commit 95ddfea
Showing
2 changed files
with
33 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,21 @@ | |
*/ | ||
|
||
plugins { | ||
id 'nu.studer.plugindev' version '1.0.3' | ||
id 'com.jfrog.bintray' version '1.8.4' | ||
/** | ||
* Plugin | ||
*/ | ||
id 'java-gradle-plugin' | ||
id 'com.gradle.plugin-publish' version '0.10.0' | ||
/** | ||
* Versioning applied to itself | ||
*/ | ||
id 'net.nemerosa.versioning' version '2.7.1' | ||
/** | ||
* Written in Groovy | ||
*/ | ||
id 'groovy' | ||
} | ||
|
||
apply plugin: 'groovy' | ||
|
||
/** | ||
* Meta information | ||
*/ | ||
|
@@ -28,62 +33,43 @@ ext { | |
jgitVersion = '5.1.1.201809181055-r' | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
localGroovy() | ||
compile gradleApi() | ||
compile localGroovy() | ||
compile 'org.ajoberstar.grgit:grgit-core:3.0.0-rc.2' | ||
compile "org.eclipse.jgit:org.eclipse.jgit.ui:${jgitVersion}" | ||
compile "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}" | ||
compile 'org.tmatesoft.svnkit:svnkit:1.8.12' | ||
testCompile "junit:junit:4.12" | ||
testCompile "commons-lang:commons-lang:2.6" | ||
testCompile "commons-io:commons-io:2.5" | ||
|
||
|
||
|
||
} | ||
|
||
/** | ||
* Plug-in definition | ||
*/ | ||
|
||
plugindev { | ||
pluginImplementationClass 'net.nemerosa.versioning.VersioningPlugin' | ||
pluginDescription 'Gradle plug-in that computes version information from the SCM' | ||
pluginLicenses 'MIT' | ||
pluginTags 'gradle', 'plugin', 'scm', 'git', 'svn', 'version' | ||
authorId 'dcoraboeuf' | ||
authorName 'Damien Coraboeuf' | ||
authorEmail '[email protected]' | ||
projectUrl 'https://github.com/nemerosa/versioning' | ||
projectInceptionYear '2015' | ||
done() | ||
pluginBundle { | ||
website = 'https://github.com/nemerosa/versioning/' | ||
vcsUrl = 'https://github.com/nemerosa/versioning/' | ||
tags = ['gradle', 'plugin', 'scm', 'git', 'svn', 'version'] | ||
} | ||
|
||
/** | ||
* Plug-in publication | ||
*/ | ||
|
||
bintray { | ||
user = bintrayUser | ||
key = bintrayApiKey | ||
pkg { | ||
repo = 'nemerosa' | ||
version { | ||
attributes = [ | ||
'gradle-plugin': 'net.nemerosa.versioning:net.nemerosa:versioning' | ||
] | ||
gradlePlugin { | ||
plugins { | ||
versioningPlugin { | ||
id = 'net.nemerosa.versioning' | ||
displayName = 'Versioning plugin for Gradle' | ||
description = 'Gradle plug-in that computes version information from the SCM' | ||
implementationClass = 'net.nemerosa.versioning.VersioningPlugin' | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Wrapper definition | ||
*/ | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '2.13' | ||
} | ||
|
||
test { | ||
environment "GIT_TEST_BRANCH", "feature/456-cute" | ||
environment "SVN_TEST_BRANCH", "feature-456-cute" | ||
|