forked from metalwihen/JavaPhoenixChannels
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
executable file
·85 lines (71 loc) · 2.01 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
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
plugins {
id "com.jfrog.bintray" version "1.7"
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'groovy'
if (project.hasProperty('signing.keyId')) {
apply plugin: 'signing'
}
def currentversion = '0.2.12'
group = 'com.kayako'
version = currentversion
allprojects {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.3'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
testCompile 'org.codehaus.groovy:groovy-all:2.3.10'
testCompile "org.spockframework:spock-core:1.0-groovy-2.3"
// optional dependencies for using Spock
testRuntime "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
testRuntime "cglib:cglib-nodep:3.1"
// allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:2.1"
// allows mocking of classes without default constructor (together with CGLIB)
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
repositories {
mavenCentral()
}
artifacts {
archives javadocJar, sourcesJar
}
if (project.hasProperty('signing.keyId')) {
signing {
sign configurations.archives
}
}
publishing {
publications {
JavaPhoenixChannelsJar(MavenPublication) {
from components.java
groupId 'com.kayako.kre'
artifactId 'kre-client'
version currentversion
}
}
}
bintray {
user = 'kayako'
key = 'ADD_API_HERE'
pkg {
repo = 'kayako-devkits'
name = 'kayako-kre-client'
userOrg = 'kayako-support'
licenses = ['BSD-3']
vcsUrl = 'https://github.com/kayako/kre-java-client'
}
publications = ['JavaPhoenixChannelsJar']
}