-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
97 lines (83 loc) · 2.35 KB
/
build.gradle
File metadata and controls
97 lines (83 loc) · 2.35 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: "jacoco"
apply plugin: "com.github.kt3k.coveralls"
apply plugin: 'com.jfrog.bintray'
archivesBaseName = 'smartcanvas-java-sdk'
sourceCompatibility = 1.7
version = '0.1.9'
group = 'com.smartcanvas'
jar {
manifest {
attributes 'Implementation-Title': 'Smart Canvas Java SDK Client', 'Implementation-Version': version
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
dependencies {
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.20.0'
compile 'org.bitbucket.b_c:jose4j:0.4.3'
testCompile group: 'com.google.http-client', name: 'google-http-client-jackson2', version: '1.20.0'
// testCompile 'com.github.javafaker:javafaker:0.5'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}
artifacts {
archives sourcesJar
archives javadocJar
}
test {
// set a system property for the test JVM(s)
systemProperty 'java.util.logging.config.file', "${projectDir}/src/test/resources/logging.properties"
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
Properties properties = new Properties()
try {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
} catch(all) {
}
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = archivesBaseName
vcsUrl = 'https://github.com/smartcanvas/java-sdk.git'
issueTrackerUrl = 'https://github.com/smartcanvas/java-sdk/issues'
labels = ['smartcanvas', 'api-client', 'java-sdk']
userOrg = 'smartcanvas'
licenses = ['MIT']
}
}