Skip to content

Commit

Permalink
Add auto-json and retrofacebook-annotation refer #37
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjhih committed Jun 30, 2015
1 parent 0497dc3 commit 11c415f
Show file tree
Hide file tree
Showing 7 changed files with 266 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auto-json/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'java'
//apply from: file('deploy.gradle')
apply from: file('deploy.gradle')

targetCompatibility = '1.7'
sourceCompatibility = '1.7'
Expand Down
111 changes: 111 additions & 0 deletions auto-json/deploy.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: 'maven'
apply plugin: 'signing'

def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}

def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
}

def getRepositoryUsername() {
return hasProperty('BINTRAY_USER') ? BINTRAY_USER : ""
}

def getRepositoryPassword() {
return hasProperty('BINTRAY_KEY') ? BINTRAY_KEY : ""
}

afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME

repository(url: getReleaseRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
snapshotRepository(url: getSnapshotRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}

pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
}

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

// http://stackoverflow.com/questions/11474729/how-to-build-sources-jar-with-gradle
task javadocsJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
//classpath += configurations.compile // http://stackoverflow.com/questions/10895032/javadoc-with-gradle-dont-get-the-libraries-while-running-javadoc-task
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
archives javadocsJar
}
}
20 changes: 20 additions & 0 deletions auto-json/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
VERSION_NAME=1.0.1
VERSION_CODE=101
GROUP=com.infstory

POM_DESCRIPTION=Using RxJava to wrap original Facebook SDK
POM_URL=https://github.com/yongjhih/RetroFacebook
POM_SCM_URL=https://github.com/yongjhih/RetroFacebook
POM_SCM_CONNECTION=scm:[email protected]:yongjhih/RetroFacebook.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:yongjhih/RetroFacebook.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=yongjhih
POM_DEVELOPER_NAME=Andrew Chen

POM_NAME=Retrofit Facebook Android SDK
POM_ARTIFACT_ID=auto-json
POM_PACKAGING=jar

RELEASE_REPOSITORY_URL=https://api.bintray.com/maven/yongjhih/maven/AutoJson/
2 changes: 1 addition & 1 deletion retrofacebook-annotation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'java'
//apply from: file('deploy.gradle')
apply from: file('deploy.gradle')

targetCompatibility = '1.7'
sourceCompatibility = '1.7'
Expand Down
111 changes: 111 additions & 0 deletions retrofacebook-annotation/deploy.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: 'maven'
apply plugin: 'signing'

def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}

def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
}

def getRepositoryUsername() {
return hasProperty('BINTRAY_USER') ? BINTRAY_USER : ""
}

def getRepositoryPassword() {
return hasProperty('BINTRAY_KEY') ? BINTRAY_KEY : ""
}

afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME

repository(url: getReleaseRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
snapshotRepository(url: getSnapshotRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}

pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
}

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

// http://stackoverflow.com/questions/11474729/how-to-build-sources-jar-with-gradle
task javadocsJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
//classpath += configurations.compile // http://stackoverflow.com/questions/10895032/javadoc-with-gradle-dont-get-the-libraries-while-running-javadoc-task
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
archives javadocsJar
}
}
20 changes: 20 additions & 0 deletions retrofacebook-annotation/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
VERSION_NAME=1.0.1
VERSION_CODE=101
GROUP=com.infstory

POM_DESCRIPTION=Using RxJava to wrap original Facebook SDK
POM_URL=https://github.com/yongjhih/RetroFacebook
POM_SCM_URL=https://github.com/yongjhih/RetroFacebook
POM_SCM_CONNECTION=scm:[email protected]:yongjhih/RetroFacebook.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:yongjhih/RetroFacebook.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=yongjhih
POM_DEVELOPER_NAME=Andrew Chen

POM_NAME=Retrofit Facebook Android SDK
POM_ARTIFACT_ID=retrofacebook-annotation
POM_PACKAGING=jar

RELEASE_REPOSITORY_URL=https://api.bintray.com/maven/yongjhih/maven/RetroFacebookAnnotation/
2 changes: 2 additions & 0 deletions retrofacebook-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ dependencies {

v3Compile project(':retrofacebook-v3')
v4Compile project(':retrofacebook')
//v3Compile 'com.infstory:retrofacebook-v3:1.0.1'
//v4Compile 'com.infstory:retrofacebook-v4:1.0.1'
compile 'io.reactivex:rxjava:1.0.9'
compile 'io.reactivex:rxandroid:0.24.0'

Expand Down

0 comments on commit 11c415f

Please sign in to comment.