Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
郑梓斌 committed Mar 11, 2017
2 parents faa56d2 + 53b730b commit 7db1a6e
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
*.iml
.gradle
/local.properties
/gradle.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
/.idea/misc.xml
.idea/misc.xml
vcs.xml

.idea/misc.xml
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
97 changes: 97 additions & 0 deletions library/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
group = PROJ_GROUP
version = PROJ_VERSION

apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java
}

task androidJavadocsJar(type: Jar) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
}

task androidLibJar(type: Jar) {
from fileTree(dir: './build/intermediates/classes/release')
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

artifacts {
archives androidSourcesJar
}

def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id DEVELOPER_ID
name DEVELOPER_NAME
email DEVELOPER_EMAIL
}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId PROJ_ARTIFACTID

artifact androidSourcesJar
artifact androidJavadocsJar
artifact bundleRelease

pom.withXml {
def root = asNode()
root.appendNode('description', PROJ_DESCRIPTION)
root.children().last() + pomConfig
}
}
}
}

bintray {
//Do not share your username and key.
// Config it in ~/.gradle/gradle.properties or local.properties
user = BINTRAY_USER
key = BINTRAY_KEY

publications = ['mavenJava'] //When uploading Maven-based publication files
// - AND/OR -
filesSpec { //When uploading any arbitrary files ('filesSpec' is a standard Gradle CopySpec)
from 'arbitrary-files'
into 'standalone_files/level1'
rename '(.+)\\.(.+)', '$1-suffix.$2'
}
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
// userOrg = 'myorg' //An optional organization name when the repo belongs to one of the user's orgs
name = PROJ_NAME
desc = 'what a fantastic package indeed!'
websiteUrl = PROJ_WEBSITEURL
issueTrackerUrl = PROJ_ISSUETRACKERURL
vcsUrl = PROJ_VCSURL
licenses = ['Apache-2.0']
// labels = ['gear', 'gore', 'gorilla']
publicDownloadNumbers = true
//attributes= ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes
//Optional version descriptor
version {
name = PROJ_VERSION //Bintray logical version name
vcsTag = PROJ_VERSION
}
}
}
13 changes: 12 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
apply plugin: 'com.android.library'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}
}

android {
compileSdkVersion 24
buildToolsVersion '25.0.0'
Expand All @@ -25,4 +34,6 @@ dependencies {

compile 'io.reactivex:rxjava:1.1.6'
compile 'io.reactivex:rxandroid:1.1.0'
}
}

apply from: 'bintray.gradle'
9 changes: 8 additions & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
PROJ_GROUP=top.zibin
<<<<<<< HEAD
PROJ_VERSION=1.0.9
=======
PROJ_VERSION=1.0.8
>>>>>>> 53b730bc24ed2fe7b4386d047f50f1c0c152406a
PROJ_NAME=Luban
PROJ_WEBSITEURL=https://github.com/Curzibn/Luban.git
PROJ_ISSUETRACKERURL=
Expand All @@ -27,4 +31,7 @@ PROJ_ARTIFACTID=Luban

DEVELOPER_ID=curzibn
DEVELOPER_NAME=Zibin Zheng
DEVELOPER_EMAIL=[email protected]
DEVELOPER_EMAIL=[email protected]

BINTRAY_USER=curzibn
BINTRAY_KEY=5c414adb6cd1ef64e6853012e1e2fe68b10df7a1

0 comments on commit 7db1a6e

Please sign in to comment.