-
Notifications
You must be signed in to change notification settings - Fork 92
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
f50caa1
commit bb3ba54
Showing
4 changed files
with
112 additions
and
24 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,83 @@ | ||
group = PROJ_GROUP | ||
version = PROJ_VERSION | ||
project.archivesBaseName = PROJ_ARTIFACTID | ||
|
||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
name PROJ_NAME | ||
description PROJ_DESCRIPTION | ||
url PROJ_WEBSITEURL | ||
inceptionYear '2017' | ||
|
||
packaging 'aar' | ||
groupId PROJ_GROUP | ||
artifactId PROJ_ARTIFACTID | ||
version PROJ_VERSION | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
connection PROJ_VCSURL | ||
url PROJ_WEBSITEURL | ||
|
||
} | ||
developers { | ||
developer { | ||
id DEVELOPER_ID | ||
name DEVELOPER_NAME | ||
email DEVELOPER_EMAIL | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
user = properties.getProperty('BINTRAY_USER') | ||
key = properties.getProperty('BINTRAY_KEY') | ||
|
||
configurations = ['archives'] | ||
|
||
dryRun = false | ||
publish = true | ||
|
||
pkg { | ||
repo = 'maven' | ||
name = PROJ_NAME | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = PROJ_VCSURL | ||
websiteUrl = PROJ_WEBSITEURL | ||
issueTrackerUrl = PROJ_ISSUETRACKERURL | ||
publicDownloadNumbers = true | ||
version { | ||
name = PROJ_VERSION | ||
desc = PROJ_DESCRIPTION | ||
vcsTag = PROJ_VERSION | ||
|
||
gpg { | ||
sign = true | ||
} | ||
} | ||
} | ||
} |
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