-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.29 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'com.github.mazzeb.auto-version'
group = "gradle.plugin.com.github.mazzeb"
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
mavenLocal()
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.7"
classpath "gradle.plugin.com.github.mazzeb:auto-version:0.3.0"
}
}
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile "net.jcip:jcip-annotations:1.0"
compile "com.google.code.gson:gson:2.8.0"
testCompile "junit:junit:4.12"
testCompile "org.hamcrest:hamcrest-all:1.3"
testCompile "org.skyscreamer:jsonassert:1.5.0"
testCompile "org.mockito:mockito-core:2.8.9"
}
autoversion {
versionFile = "version.json"
}
pluginBundle {
website = 'https://github.com/mazzeb/gradle-auto-version'
vcsUrl = 'https://github.com/mazzeb/gradle-auto-version'
description = 'Automatically update version in version.gradle'
tags = ['autoversion']
plugins {
gradleAutoVersionPlugin {
id = 'com.github.mazzeb.auto-version'
displayName = 'A Gradle plugin to automatically update versions in version.json'
}
}
}