forked from Curzibn/Luban
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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= | ||
|
@@ -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 |