File tree Expand file tree Collapse file tree 3 files changed +102
-2
lines changed
Expand file tree Collapse file tree 3 files changed +102
-2
lines changed Original file line number Diff line number Diff line change 2323 allLicenses = [" Apache-2.0" ]
2424}
2525
26- apply from : ' https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1. gradle'
27- apply from : ' https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1. gradle'
26+ apply from : rootProject . file( ' gradle/bintray/install. gradle' )
27+ apply from : rootProject . file( ' gradle/bintray/bintray. gradle' )
Original file line number Diff line number Diff line change 1+ // Source: https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle
2+ apply plugin : ' com.jfrog.bintray'
3+
4+ version = libraryVersion
5+
6+ if (project. hasProperty(" android" )) { // Android libraries
7+ task sourcesJar(type : Jar ) {
8+ classifier = ' sources'
9+ from android. sourceSets. main. java. srcDirs
10+ }
11+
12+ task javadoc(type : Javadoc ) {
13+ source = android. sourceSets. main. java. srcDirs
14+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
15+ }
16+ } else { // Java libraries
17+ task sourcesJar(type : Jar , dependsOn : classes) {
18+ classifier = ' sources'
19+ from sourceSets. main. allSource
20+ }
21+ }
22+
23+ task javadocJar (type : Jar , dependsOn : javadoc) {
24+ classifier = ' javadoc'
25+ from javadoc. destinationDir
26+ }
27+
28+ artifacts {
29+ archives javadocJar
30+ archives sourcesJar
31+ }
32+
33+ // Bintray
34+ bintray {
35+ user = hasProperty(' bintrayUser' ) ? bintrayUser : " "
36+ key = hasProperty(' bintrayKey' ) ? bintrayKey : " "
37+
38+ configurations = [' archives' ]
39+ pkg {
40+ repo = bintrayRepo
41+ name = bintrayName
42+ desc = libraryDescription
43+ websiteUrl = siteUrl
44+ vcsUrl = gitUrl
45+ licenses = allLicenses
46+ publish = true
47+ publicDownloadNumbers = true
48+ version {
49+ desc = libraryDescription
50+ gpg {
51+ sign = true // Determines whether to GPG sign the files. The default is false
52+ passphrase = hasProperty(' bintrayGpgPassword' ) ? bintrayGpgPassword : " "
53+ // Optional. The passphrase for GPG signing'
54+ }
55+ }
56+ }
57+ }
Original file line number Diff line number Diff line change 1+ // Source; https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle
2+ apply plugin : ' com.github.dcendents.android-maven'
3+
4+ group = publishedGroupId // Maven Group ID for the artifact
5+
6+ install {
7+ repositories. mavenInstaller {
8+ // This generates POM.xml with proper parameters
9+ pom {
10+ project {
11+ packaging ' aar'
12+ groupId publishedGroupId
13+ artifactId artifact
14+
15+ // Add your description here
16+ name libraryName
17+ description libraryDescription
18+ url siteUrl
19+
20+ // Set your license
21+ licenses {
22+ license {
23+ name licenseName
24+ url licenseUrl
25+ }
26+ }
27+ developers {
28+ developer {
29+ id developerId
30+ name developerName
31+ email developerEmail
32+ }
33+ }
34+ scm {
35+ connection gitUrl
36+ developerConnection gitUrl
37+ url siteUrl
38+
39+ }
40+ }
41+ }
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments