forked from sacOO7/socketcluster-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (61 loc) · 1.54 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'net.researchgate.release' version '2.8.1'
}
allprojects {
tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}
}
group 'aero.unifly'
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
}
release {
tagTemplate = 'v${version}'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'aero.unifly'
artifactId 'unifly-socketcluster-client-java'
from components.java
artifact sourceJar {
classifier "sources"
}
withoutBuildIdentifier()
suppressAllPomMetadataWarnings()
}
}
repositories {
maven {
name = 'unifly'
def releasesRepoUrl = artifactoryURL + "/artifactory/libs-release-local"
def snapshotsRepoUrl = artifactoryURL + "/artifactory/libs-snapshot-local"
url = rootProject.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials(PasswordCredentials)
}
}
}
dependencies {
compile 'com.neovisionaries:nv-websocket-client:2.5'
compile group: 'org.json', name: 'json', version: '20090211'
}