-
Notifications
You must be signed in to change notification settings - Fork 783
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
a96b065
commit 863f185
Showing
3 changed files
with
62 additions
and
7 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,60 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
def upload = [ | ||
user : 'yarolegovich', | ||
artifactId : 'discrete-scrollview', | ||
userOrg : 'yarolegovich', | ||
repository : 'maven', | ||
groupId : 'com.yarolegovich', | ||
uploadName : 'DiscreteScrollView', | ||
description: 'A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.', | ||
version : '1.5.0', | ||
licences : ['Apache-2.0'] | ||
] | ||
|
||
task androidSourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
version upload.version | ||
|
||
afterEvaluate { | ||
|
||
publishing { | ||
publications { | ||
LibRelease(MavenPublication) { | ||
from components.release | ||
|
||
artifact androidSourcesJar | ||
|
||
artifactId upload.artifactId | ||
groupId upload.groupId | ||
version upload.version | ||
} | ||
} | ||
} | ||
|
||
Properties localProps = new Properties() | ||
localProps.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
bintray { | ||
user = upload.user | ||
key = localProps.getProperty('bintray.api_key') | ||
publications = ['LibRelease'] | ||
configurations = ['archives'] | ||
pkg { | ||
name = upload.uploadName | ||
repo = upload.repository | ||
userOrg = upload.userOrg | ||
licenses = upload.licences | ||
publish = true | ||
dryRun = false | ||
version { | ||
name = upload.version | ||
desc = upload.description | ||
} | ||
} | ||
} | ||
} |