-
Notifications
You must be signed in to change notification settings - Fork 26
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
1 parent
826488f
commit acb2250
Showing
5 changed files
with
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
task androidJavadocs(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" | ||
classpath += files(ext.androidJar) | ||
} | ||
|
||
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { | ||
classifier = 'javadoc' | ||
from androidJavadocs.destinationDir | ||
} | ||
|
||
task androidSourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.sourceFiles | ||
} | ||
|
||
task androidJar(type: Jar) { | ||
from 'build/intermediates/classes/release' | ||
} | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
archives androidJavadocsJar | ||
archives androidJar | ||
} |
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,64 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId GROUP | ||
version VERSION_NAME | ||
artifactId 'recyclerview-binder-rx' | ||
// artifact "build/outputs/aar/binder-release.aar" | ||
artifact androidJar | ||
artifact androidJavadocsJar | ||
artifact androidSourcesJar | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'recyclerview-binder-rx') | ||
root.appendNode('description', POM_DESCRIPTION) | ||
root.appendNode('url', POM_URL) | ||
|
||
def issues = root.appendNode('issueManagement') | ||
issues.appendNode('system', 'github') | ||
issues.appendNode('url', ISSUE_URL) | ||
|
||
def scm = root.appendNode('scm') | ||
scm.appendNode('url', POM_SCM_URL) | ||
scm.appendNode('connection', POM_SCM_CONNECTION) | ||
scm.appendNode('developerConnection', POM_SCM_DEV_CONNECTION) | ||
|
||
def license = root.appendNode('licenses').appendNode('license') | ||
license.appendNode('name', POM_LICENCE_NAME) | ||
license.appendNode('url', POM_LICENCE_URL) | ||
license.appendNode('distribution', POM_LICENCE_DIST) | ||
} | ||
} | ||
} | ||
} | ||
|
||
def getBintrayUserProperty() { | ||
return hasProperty('bintrayUser') ? bintrayUser : "" | ||
} | ||
|
||
def getBintrayApiKeyProperty() { | ||
return hasProperty('bintrayApiKey') ? bintrayApiKey : "" | ||
} | ||
|
||
bintray { | ||
user = bintrayUserProperty | ||
key = bintrayApiKeyProperty | ||
publications = ['mavenJava'] | ||
|
||
dryRun = false | ||
publish = false | ||
pkg { | ||
repo = 'maven' | ||
name = 'recyclerview-binder-rx' | ||
licenses = ['Apache-2.0'] | ||
labels = ['android'] | ||
|
||
version { | ||
name = VERSION_NAME | ||
vcsTag = VERSION_NAME | ||
} | ||
} | ||
} |
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