-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (83 loc) · 2.06 KB
/
build.gradle
File metadata and controls
102 lines (83 loc) · 2.06 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.7"
}
group 'com.workable'
version '1.1.0'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile "org.mockito:mockito-core:1.+"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'com.workable'
artifactId 'error-handler'
version '1.1.0'
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
repositories {
maven {
url "./dist"
}
}
}
Properties localProps = new Properties()
try {
localProps.load(project.file('../local.properties').newDataInputStream())
} catch(Exception ex) {
logger.warn('local.properties file is missing')
}
bintray {
user = localProps.getProperty('bintrayUser')
key = localProps.getProperty('bintrayApiKey')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'ErrorHandler'
desc = 'Error handling library for Android and Java'
userOrg = "workable"
licenses = ['MIT']
vcsUrl = 'https://github.com/Workable/java-error-handler'
labels = ['java', 'error handler', 'errors', 'android']
publicDownloadNumbers = true
version {
name = '1.1.0'
desc = 'Error handling library for Android and Java'
vcsTag = 'v1.1.0'
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
}
}
}
}