Skip to content

Commit 6cd252e

Browse files
committed
Merge pull request #22 from eyedol/9-make-way-for-release
9 make way for release
2 parents 74802d6 + ddfea59 commit 6cd252e

7 files changed

Lines changed: 128 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## v0.1.0
2+
_2016-03-25_
3+
4+
* Implements create subscriber.
5+
* Implements create bulk subscriber.
6+
* Implements list subscribers.
7+
* Implements modify subscribers.
8+
* Implements delete subscriber.
9+
* Add sample code showing how to use the different API clients.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ It comes with three independent modules:
99
- Asynchronous module; Access the API asynchronously
1010
- RxJava module; Access the API using RxJava
1111

12+
**Note:** These are not official libraries from the VOTO team.
13+
1214
###<a name="Setup">**Setup**
1315
Add gradle dependency:
1416

@@ -22,21 +24,21 @@ repositories {
2224
Synchronous module:
2325
```groovy
2426
dependencies {
25-
compile 'com.addhen:voto.sdk.sync:0.1.0'
27+
compile 'com.addhen:voto-sdk-sync:0.1.0'
2628
}
2729
```
2830

2931
Asynchronous module:
3032
```groovy
3133
dependencies {
32-
compile 'com.addhen:voto.sdk.async:0.1.0'
34+
compile 'com.addhen:voto-sdk-async:0.1.0'
3335
}
3436
```
3537

3638
RxJava module:
3739
```groovy
3840
dependencies {
39-
compile 'com.addhen:voto.sdk.rxjava:0.1.0'
41+
compile 'com.addhen:voto-sdk-rxjava:0.1.0'
4042
}
4143
```
4244
### Usage

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath 'com.novoda:bintray-release:0.3.4'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
11+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
1112
}
1213
}
1314

Lines changed: 100 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,101 @@
1-
// Upload artifact to bintray repo
2-
publish {
3-
groupId = 'com.addhen'
4-
artifactId = artifact
5-
publishVersion = project.parent.version
6-
desc = description
7-
licences = ['Apache-2.0']
8-
website = 'https://github.com/eyedol/voto-java-sdk'
9-
autoPublish = true
10-
bintrayUser = project.hasProperty("bintray.user") ? bintray.user : "";
11-
bintrayKey = project.hasProperty("bintray.apikey") ? bintray.apikey : "";
1+
// Upload artifact to bintray
2+
def siteUrl = 'https://github.com/eyedol/voto-java-sdk' // Homepage URL of the library
3+
def gitUrl = 'https://eyedol@github.com/eyedol/voto-java-sdk.git' // Git repository URL
4+
def issueUrl = 'https://github.com/eyedol/voto-java-sdk/issues/'
5+
group = "com.addhen" // Maven Group ID for the artifact
6+
7+
def libVersion = project.parent.version.toString()
8+
9+
install {
10+
repositories.mavenInstaller {
11+
// This generates POM.xml with proper parameters
12+
pom {
13+
project {
14+
packaging 'jar'
15+
// Add your description here
16+
name artifact.toString()
17+
description = blob
18+
url siteUrl
19+
// Set your license
20+
licenses {
21+
license {
22+
name 'The Apache Software License, Version 2.0'
23+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
24+
}
25+
}
26+
developers {
27+
developer {
28+
id 'eyedol'
29+
name 'Henry Addo'
30+
email 'henry@addhen.org'
31+
}
32+
}
33+
scm {
34+
connection gitUrl
35+
developerConnection gitUrl
36+
url siteUrl
37+
38+
}
39+
}
40+
}
41+
}
42+
}
43+
44+
task sourcesJar(type: Jar) {
45+
from sourceSets.main.java.srcDirs
46+
classifier = 'sources'
47+
}
48+
49+
task javadocJar(type: Jar, dependsOn: javadoc) {
50+
classifier = 'javadoc'
51+
from javadoc.destinationDir
52+
}
53+
54+
artifacts {
55+
archives javadocJar
56+
archives sourcesJar
57+
}
58+
59+
Properties properties = new Properties()
60+
if (project.rootProject.file('local.properties').exists()) {
61+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
62+
}
63+
64+
// https://github.com/bintray/gradle-bintray-plugin
65+
bintray {
66+
user = properties.getProperty("bintray.user", "")
67+
key = properties.getProperty("bintray.apikey", "")
68+
configurations = ['archives']
69+
pkg {
70+
repo = "maven"
71+
// it is the name that appears in bintray when logged
72+
name = artifact
73+
websiteUrl = siteUrl
74+
vcsUrl = gitUrl
75+
issueTrackerUrl = issueUrl
76+
licenses = ["Apache-2.0"]
77+
labels = ['android', 'java', 'voto', 'sdk', 'api']
78+
publicDownloadNumbers = true
79+
publish = true
80+
desc = blob
81+
githubRepo = 'eyedol/voto-java-sdk' //Optional Github repository
82+
githubReleaseNotesFile = 'CHANGELOG.md'
83+
version {
84+
name = libVersion
85+
vcsTag = libVersion
86+
gpg {
87+
sign = true //Determines whether to GPG sign the files. The default is false
88+
passphrase = properties.getProperty("bintray.gpg.password", "")
89+
//Optional. The passphrase for GPG signing'
90+
}
91+
mavenCentralSync {
92+
sync = true
93+
//Optional (true by default). Determines whether to sync the version to Maven Central.
94+
user = properties.getProperty("bintray.oss.user", "") //OSS user token
95+
password = properties.getProperty("bintray.oss.password", "") //OSS user password
96+
close = '1'
97+
//Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
98+
}
99+
}
100+
}
12101
}

voto-async/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java'
2-
apply plugin: 'com.novoda.bintray-release'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
34
apply from: '../gradle-config/quality.gradle'
45
apply from: '../gradle-config/jacoco-codecoverage.gradle'
56

@@ -11,7 +12,7 @@ dependencies {
1112

1213
// Upload artifact to bintray repo
1314
ext {
14-
artifact = 'voto.sdk.async'
15-
description = 'Provides access to the VOTO API asynchronously'
15+
artifact = 'voto-sdk-async'
16+
blob = 'Provides access to the VOTO API asynchronously'
1617
}
1718
apply from: '../gradle-config/bintray-upload.gradle'

voto-rxjava/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java'
2-
apply plugin: 'com.novoda.bintray-release'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
34
apply from: '../gradle-config/quality.gradle'
45
apply from: '../gradle-config/jacoco-codecoverage.gradle'
56

@@ -14,8 +15,8 @@ dependencies {
1415

1516
// Upload artifact to bintray repo
1617
ext {
17-
artifact = 'voto.sdk.rxjava'
18-
description = 'Uses RxJava for accessing the VOTO API'
18+
artifact = 'voto-sdk-rxjava'
19+
blob = 'Uses RxJava for accessing the VOTO API'
1920
}
2021
// Upload artifact to bintray repo
2122
apply from: '../gradle-config/bintray-upload.gradle'

voto-sync/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java'
2-
apply plugin: 'com.novoda.bintray-release'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
34
apply from: '../gradle-config/quality.gradle'
45
apply from: '../gradle-config/jacoco-codecoverage.gradle'
56

@@ -12,8 +13,8 @@ dependencies {
1213
}
1314

1415
ext {
15-
artifact = 'voto.sdk.sync'
16-
description = 'Provides access to the VOTO API synchronously'
16+
artifact = 'voto-sdk-sync'
17+
blob = 'Provides access to the VOTO API synchronously'
1718
}
1819
// Upload artifact to bintray repo
1920
apply from: '../gradle-config/bintray-upload.gradle'

0 commit comments

Comments
 (0)