forked from davideas/GrabVer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (73 loc) · 2.38 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
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.7'
}
}
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
jcenter()
mavenLocal()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile gradleApi()
compile localGroovy()
compile 'nu.studer:java-ordered-properties:1.0.1'
testCompile gradleTestKit()
testCompile group: 'junit', name: 'junit', version: '4.12'
}
ext {
// Author
developerId = 'davideas'
developerName = 'Davide Steduto'
developerEmail = '[email protected]'
// Library Repository
libraryName = 'GrabVer'
libraryVersion = '1.0.0'
displayName = 'Gradle Automatic Build Versioning Plugin'
libraryDescription = 'An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.'
libraryLabels = ['semver', 'version', 'versioning', 'build-versioning', 'automatic-versioning', 'intellij-idea', 'android-studio', 'auto-reset']
siteUrl = 'https://github.com/davideas/GrabVer'
gitUrl = 'https://github.com/davideas/GrabVer.git'
bintrayRepo = 'maven'
bintrayName = 'grabver'
publishedGroupId = 'eu.davidea'
id = publishedGroupId + '.' + bintrayName
// License
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ['Apache-2.0']
}
// For task: publishPlugins
group publishedGroupId
version libraryVersion
pluginBundle {
website = project.siteUrl
vcsUrl = project.gitUrl
description = project.libraryDescription
tags = project.libraryLabels
plugins {
grabverPlugin {
id = project.id
displayName = project.displayName
}
}
mavenCoordinates {
groupId = project.publishedGroupId
artifactId = project.bintrayName
version = project.libraryVersion
}
}
if (gradle.getStartParameter().getTaskNames().contains("bintrayUpload")) {
apply from: 'jfrog-bintray-publish.gradle'
}