forked from android10/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (36 loc) · 1.23 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
apply plugin: 'java'
repositories {
jcenter()
}
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_7
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$project.bintrayPluginVersion"
}
}
apply from: "publish.gradle"
dependencies {
compile "org.jetbrains:annotations:$project.annotationsVersion"
testCompile "junit:junit:$project.junitVersion"
testCompile "org.assertj:assertj-core:$project.assertJVersion"
testCompile "org.mockito:mockito-core:$project.mockitoVersion"
}
task buildArrow(type: Exec, dependsOn: ['clean', 'generatePomFileForMavenJavaPublication']) {
description = 'Builds Arrow Library.'
commandLine "./gradlew", "build"
}
buildArrow.mustRunAfter('clean', 'generatePomFileForMavenJavaPublication')
task installArrow(type: Exec, dependsOn: ['buildArrow']) {
description = 'Installs Arrow Library to the maven local repository.'
commandLine "./gradlew", "installToLocalRepo"
}
installArrow.mustRunAfter('buildArrow')
task publishArrow(type: Exec, dependsOn: ['buildArrow']) {
description = 'Publishes Arrow Library.'
commandLine "./gradlew", "bintrayUpload"
}
publishArrow.mustRunAfter('buildArrow')