forked from researchgate/gradle-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (78 loc) · 2.71 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.3.0'
classpath 'nu.studer:gradle-plugindev-plugin:1.0.4'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.4.6'
classpath 'net.researchgate:gradle-release:2.3.5'
}
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'nu.studer.plugindev'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'net.researchgate.release'
group='net.researchgate'
dependencies {
testCompile("org.spockframework:spock-core:$spockVersion") { exclude group: 'org.codehaus.groovy' }
testCompile "junit:junit:$junitVersion"
testCompile "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
testCompile "cglib:cglib-nodep:$cglibVersion"
}
plugindev {
pluginImplementationClass 'net.researchgate.release.ReleasePlugin'
pluginDescription 'gradle-release is a plugin for providing a Maven-like release process to project using Gradle.'
pluginLicenses 'MIT'
pluginTags 'gradle', 'plugin', 'release'
authorId 'danez'
authorName 'Daniel Tschinder'
authorEmail '[email protected]'
projectUrl 'https://github.com/researchgate/gradle-release'
projectInceptionYear '2011'
done() // do not omit this
}
release {
git {
requireBranch = '(master|\\d+\\.\\d+)'
}
}
bintray {
user = project.hasProperty('bintrayUser') ? bintrayUser : ''
key = project.hasProperty('bintrayApiKey') ? bintrayApiKey : ''
pkg {
repo = 'gradle-plugins'
userOrg = 'researchgate'
version {
gpg {
sign = true
passphrase = project.hasProperty('bintrayGpgPassphrase') ? bintrayGpgPassphrase : ''
}
mavenCentralSync {
user = project.hasProperty('sonatypeUser') ? sonatypeUser : ''
password = project.hasProperty('sonatypePassword') ? sonatypePassword : ''
}
}
}
publish = true
}
artifactory {
contextUrl = 'https://oss.jfrog.org'
publish {
repository {
repoKey = 'oss-snapshot-local' //The Artifactory repository key to publish to
username = project.hasProperty('bintrayUser') ? bintrayUser : ''
password = project.hasProperty('bintrayApiKey') ? bintrayApiKey : ''
}
defaults {
publications 'plugin' // That is how it is named in plugindev plugin
properties = ['bintray.repo': 'gradle-plugins', 'bintray.package': 'gradle-release', 'bintray.version': version.toString()]
}
}
resolve {
repoKey = 'jcenter'
}
}
afterReleaseBuild.dependsOn bintrayUpload
wrapper.gradleVersion = '1.12'