forked from florent37/RxGps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* back to bintray, fingers crossed! * fixed an issue with the gradle script * sample now pulls in the maven repo
- Loading branch information
Showing
5 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,57 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
version '1.1.1' // your library version | ||
group 'com.ersen' // whatever group name you'd like | ||
|
||
publishing { | ||
publications { | ||
Production(MavenPublication) { | ||
artifact("$buildDir/outputs/aar/rxgps-release.aar") // replace with your library name | ||
groupId this.group | ||
artifactId 'rxGps' // replace with your library artifact id | ||
version this.version | ||
|
||
pom.withXml { | ||
def dependenciesNode = asNode().appendNode('dependencies') | ||
|
||
// Iterate over the implementation dependencies (we don't want the test ones), | ||
// adding a <dependency> node for each | ||
configurations.implementation.allDependencies.each { | ||
// Ensure dependencies such as fileTree are not included in the pom. | ||
if (it.name != 'unspecified') { | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', it.group) | ||
dependencyNode.appendNode('artifactId', it.name) | ||
dependencyNode.appendNode('version', it.version) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
def credentialsPropertiesFile = rootProject.file("credentials.properties") | ||
def credentialsProperties = new Properties() | ||
credentialsProperties.load(new FileInputStream(credentialsPropertiesFile)) | ||
user = credentialsProperties['bintray.user'] | ||
key = credentialsProperties['bintray.apikey'] | ||
publications = ['Production'] | ||
configurations = ['archives'] | ||
// Default: false. Whether to run this as dry-run, without deploying | ||
dryRun = false | ||
// Default: false. Whether to override version artifacts already published | ||
override = false | ||
// Default: false. Whether version should be auto published after an upload | ||
publish = true | ||
pkg { | ||
repo = 'RxGps' // the name of the repository you created on Bintray | ||
name = 'com.ersen.rxgps' // the name of the package you created inside it | ||
version { | ||
name = this.version | ||
released = new Date() | ||
vcsTag = this.version | ||
} | ||
} | ||
} |