-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.4 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
// Apply the publishing plugin
buildscript {
repositories {
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'com.gradle.publish:plugin-publish-plugin:0.12.0'
}
}
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
version = '0.4.14' // <-----UPDATE THIS VERSION NUMBER MANUALLY FOR EACH RELEASE
group = 'com.gladed.androidgitversion'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.eclipse.jgit:org.eclipse.jgit:5.9.0.202009080501-r'
testCompile "junit:junit:4.12"
}
test {
reports {
junitXml.enabled = true
html.enabled = true
}
}
gradlePlugin {
plugins {
androidGitVersion {
id = project.group
implementationClass = 'com.gladed.androidgitversion.AndroidGitVersion'
}
}
}
pluginBundle {
website = 'https://github.com/gladed/gradle-android-git-version'
vcsUrl = 'https://github.com/gladed/gradle-android-git-version'
description = 'Automatically extract Android-friendly version names and codes from git tags'
tags = [ 'android', 'git', 'version' ]
plugins {
androidGitVersion {
displayName = 'Android Git Version plugin'
}
}
}