-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (30 loc) · 777 Bytes
/
Copy pathbuild.gradle
File metadata and controls
37 lines (30 loc) · 777 Bytes
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
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'groovy'
apply from: "https://launchpad.net/gradle-release/trunk/latest/+download/apply.groovy"
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile "com.googlecode.flyway:flyway-core:1.7"
groovy localGroovy()
testCompile "com.h2database:h2:1.3.160"
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri(repositoryToUpload()))
}
}
}
createReleaseTag.dependsOn uploadArchives
String repositoryToUpload() {
def mavenLocalRepository
if (hasProperty('releaseDir')) {
mavenLocalRepository = releaseDir
} else {
mavenLocalRepository = System.env.M2_HOME ?: "repo"
}
mavenLocalRepository
}