forked from centrifugal/centrifuge-android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.63 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
buildscript {
repositories {
mavenLocal()
jcenter()
}
}
group 'org.coindirect'
version '0.38'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'org.java-websocket:Java-WebSocket:1.3.0'
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile 'org.slf4j:slf4j-api:1.7.25'
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20180130'
testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0') {
exclude module: 'httpclient'
}
testCompile 'org.mockito:mockito-core:2.+'
testCompile 'com.squareup.okhttp3:okhttp:3.2.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.7.5'
testCompile 'commons-codec:commons-codec:1.9'
testCompile files('lib/testcontainers-1.0.5.jar')
}
publishing.publications {
mavenJava(MavenPublication) {
from components.java
pom.withXml {
asNode().get('dependencies').get(0).get('dependency').each() { dep ->
String pomVer = dep.get("version").text();
String pomArtifactId = dep.get("artifactId").text();
String pomGroupId = dep.get("groupId").text();
if(pomVer.isEmpty()){
def depVer = project.dependencyManagement.dependencyManagementContainer.globalDependencyManagement.versions["$pomGroupId:$pomArtifactId"]
dep.appendNode('version',depVer)
}
}
}
}
}