-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (34 loc) · 1.14 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
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:1.6"
}
}
apply from: "publish.gradle"
task buildToolbelt(type: Exec, dependsOn: ['clean', 'generatePomFileForMavenJavaPublication']) {
description = 'Builds Toolbelt Library.'
commandLine "./gradlew", "build"
}
buildToolbelt.mustRunAfter('clean', 'generatePomFileForMavenJavaPublication')
task installToolbelt(type: Exec, dependsOn: ['buildToolbelt']) {
description = 'Installs Toolbelt Library to the maven local repository.'
commandLine "./gradlew", "installToLocalRepo"
}
installToolbelt.mustRunAfter('buildToolbelt')
task publishToolbelt(type: Exec, dependsOn: ['buildToolbelt']) {
description = 'Publishes Toolbelt Library.'
commandLine "./gradlew", "bintrayUpload"
}
publishToolbelt.mustRunAfter('buildToolbelt')
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.jetbrains:annotations:13.0"
}