-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (40 loc) · 1.26 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
//buildscript {
// apply from: 'gradle/Bintray.gradle' // see https://bitbucket.org/davidmc24/gradle-bintray-plugin
//}
/*
* create snapshot: gradle makeSnapshot
* create release: gradle makeRelease
*/
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
group = 'org.svenehrke'
archivesBaseName = 'directory_template'
version = '0.0.16'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.0.10'
compile 'ch.qos.logback:logback-core:1.0.10'
compile 'commons-io:commons-io:2.4'
compile 'org.eclipse.jgit:org.eclipse.jgit:2.3.1.201302201838-r'
compile 'org.codehaus.groovy:groovy-all:2.2.1'
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
testCompile 'junit:junit:4.10'
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "${userDeploymentRepoBaseURL}/releases")
}
}
// see http://evgeny-goldin.com/wiki/Gradle (section 'Setting the repository URL at the time the DAG is ready')
gradle.taskGraph.whenReady { tg ->
if (!tg.hasTask(':makeRelease')) {
version += '-SNAPSHOT'
uploadArchives.repositories['mavenDeployer'].repository.url = "${userDeploymentRepoBaseURL}/snapshots"
}
}
task makeSnapshot(dependsOn: 'uploadArchives')
task makeRelease(dependsOn: 'uploadArchives')