-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild.gradle
83 lines (69 loc) · 1.69 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.8.4"
id 'java'
}
repositories {
jcenter()
}
allprojects {
tasks.withType(JavaCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
}
group 'io.github.sac'
version '2.0.0'
allprojects {
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'io.github.sac'
artifactId 'SocketclusterClientJava'
version this.version
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
}
bintray{
user=System.getenv('BINTRAY_USER')
key=System.getenv('BINTRAY_API_KEY')
// configurations = ['archives']
publications = ['MyPublication']
pkg {
repo = 'Maven'
name = 'socketcluster-client'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/sacOO7/socketcluster-client-java.git'
publicDownloadNumbers = true
version {
name = this.version
desc = 'Fixed ping pong isse in accordance with new sc release'
vcsTag = this.version
}
}
}
dependencies {
compile 'com.neovisionaries:nv-websocket-client:1.30'
compile group: 'org.json', name: 'json', version: '20090211'
}