This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
build-prod.gradle
116 lines (96 loc) · 3.28 KB
/
build-prod.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
plugins {
id 'maven'
id 'maven-publish'
id 'java'
id "com.jfrog.bintray" version "1.7"
id 'com.github.j2objccontrib.j2objcgradle' version '0.6.0-alpha'
}
task client(type: Jar) {
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
artifacts {
archives client
}
sourceSets {
testapplication {
compileClasspath += sourceSets.main.compileClasspath
}
}
defaultTasks 'build'
repositories {
jcenter()
}
sourceSets {
testapplication {
compileClasspath += sourceSets.main.runtimeClasspath
}
}
dependencies {
compile 'com.google.code.gson:gson:2.6.2'
compile 'org.java-websocket:Java-WebSocket:1.3.5'
compile 'com.google.j2objc:j2objc-annotations:1.1'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile "org.mockito:mockito-core:1.+"
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
j2objcConfig {
skipJ2objcVerification true
autoConfigureDeps true
supportedArchs += ['ios_i386']
testPattern {
include '**/*Test.java'
}
translateArgs "--no-package-directories", "-use-arc", "--build-closure", "--nullability"
translateArgs "--strip-gwt-incompatible"
translateArgs "--prefixes", "${projectDir}/prefixes.properties"
translateArgs "--doc-comments"
translateArgs "--swift-friendly"
extraObjcCompilerArgs '-fobjc-arc', '-fembed-bitcode', '-Wno-nullability-completeness'
finalConfigure() // Must be last call to configuration
}
group 'io.deepstream'
version '2.2.2'
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'io.deepstream'
artifactId 'deepstream.io-client-java'
version '2.2.2'
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives'] //When uploading configuration files
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying
publish = true //[Default: false] Whether version should be auto published after an upload
override = false //[Default: false] Whether to override version artifacts already published
//Package configuration. The plugin will use the repo and name properties to check if the package already exists. In that case, there's no need to configure the other package properties (like userOrg, desc, etc).
pkg {
repo = 'maven'
name = 'deepstream.io-client-java'
userOrg = 'deepstreamio'
desc = 'Java deepstream.io library'
websiteUrl = 'https://deepstream.io/'
issueTrackerUrl = 'https://github.com/deepstreamIO/deepstream.io-client-java/issues'
vcsUrl = 'https://github.com/deepstreamIO/deepstream.io-client-java.git'
licenses = ['Apache-2.0']
labels = ['deepstream.io', 'data-sync', 'realtime', 'pubsub', 'rpc']
publicDownloadNumbers = false
githubRepo = 'https://github.com/deepstreamIO/deepstream.io-client-java'
githubReleaseNotesFile = 'README.md'
//Optional version descriptor
version {
name = '2.2.2'
released = new Date()
gpg {
sign = true
}
}
}
}