-
Notifications
You must be signed in to change notification settings - Fork 101
/
build.gradle
executable file
·83 lines (71 loc) · 2.09 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
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'
}
group = 'org.phoenixframework.channels'
version = '1.0.0'
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'
compile 'org.slf4j:slf4j-api:1.7.22'
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.github.eoinsha'
artifactId 'JavaPhoenixChannels'
version '1.0'
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'java-phoenix-channels'
name = 'JavaPhoenixChannels'
userOrg = 'javaphoenixchannels'
licenses = ['BSD-3']
vcsUrl = 'https://github.com/eoinsha/JavaPhoenixChannels.git'
}
publications = ['JavaPhoenixChannelsJar']
}