-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
94 lines (74 loc) · 1.98 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
84
85
86
87
88
89
90
91
92
93
94
buildscript {
dependencies {
classpath group: 'com.liferay', name: 'com.liferay.gradle.plugins.source.formatter', version: '1.0.3'
}
repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
plugins {
id 'java'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7.1'
}
apply plugin: 'com.liferay.source.formatter'
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_7
ext {
artifactId = 'liferay-mobile-sdk'
}
group 'com.liferay.mobile'
version '2.0.2'
formatSource {
baseDirName = 'src/main/java'
copyrightFileName = 'LICENSE'
}
def rxVersion = '1.2.5'
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.7.5'
compileOnly group: 'com.google.android', name: 'android', version: '2.3.3'
compileOnly group: 'io.reactivex', name: 'rxjava', version: rxVersion
testCompile group: 'com.liferay.mobile', name: 'liferay-mobile-sdk-services', version: '1.0'
testCompile group: 'io.reactivex', name: 'rxjava', version: rxVersion
testCompile group: 'junit', name: 'junit', version: '4.12-beta-3'
testCompile group: 'org.json', name: 'json', version: '20160212'
testRuntime group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.0.1'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId project.artifactId
artifact sourceJar
}
}
}
bintray {
user = findProperty('user') ?: ''
key = findProperty('key') ?: ''
publications = ['mavenJava']
pkg {
repo = 'liferay-mobile'
name = project.artifactId
userOrg = 'liferay'
licenses = ['LGPL-2.1']
vcsUrl = 'https://github.com/brunofarache/liferay-android-sdk.git'
version {
name = project.version
}
}
}
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}