forked from eoinsha/JavaPhoenixChannels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·74 lines (63 loc) · 1.88 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
plugins {
id "com.jfrog.bintray" version "1.6"
}
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 = '0.1.0'
sourceCompatibility = '1.7'
targetCompatibility = '1.6'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3'
compile 'com.squareup.okhttp:okhttp-ws:2.7.2'
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 '0.1'
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'java-phoenix-channels'
name = 'JavaPhoenixChannels'
licenses = ['BSD-3']
vcsUrl = 'https://github.com/eoinsha/JavaPhoenixChannels.git'
}
publications = ['JavaPhoenixChannelsJar']
}