1+ /*
12buildscript {
23 repositories {
3- maven {
4- url " https://plugins.gradle.org/m2/"
5- }
4+ jcenter()
65 }
6+
77 dependencies {
8- classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1"
8+ classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
9+ //classpath 'com.github.dcendents:android-maven-plugin:1.2'
910 }
1011}
12+ */
1113
12- import java.text.SimpleDateFormat
14+ // import java.text.SimpleDateFormat
1315
14- def globalVersion = new Version (currentVersion)
16+ // def globalVersion = new Version(currentVersion)
17+
18+ def group = ' net.sjava.appstore'
19+ def version = ' 1.0.0'
1520
1621apply plugin : ' com.android.library'
1722apply plugin : ' com.github.dcendents.android-maven'
@@ -24,7 +29,22 @@ android {
2429 compileSdkVersion 21
2530 buildToolsVersion " 21.1.2"
2631
27- resourcePrefix " appstorelibrary__"
32+ /*
33+ sourceSets {
34+ main {
35+ manifest.srcFile '/src/main/AndroidManifest.xml'
36+ java.srcDirs = ['src']
37+
38+ resources.srcDirs = ['src']
39+ aidl.srcDirs = ['src']
40+
41+ renderscript.srcDirs = ['src']
42+
43+ res.srcDirs = ['res']
44+ assets.srcDirs = ['assets']
45+ }
46+ }
47+ */
2848
2949 defaultConfig {
3050 minSdkVersion 8
@@ -43,27 +63,44 @@ android {
4363dependencies {
4464 compile fileTree(dir : ' libs' , include : [' *.jar' ])
4565 compile ' com.android.support:appcompat-v7:21.0.3'
46-
4766}
4867
4968def siteUrl = ' https://github.com/mcsong/AppStoreLibrary' // Homepage URL of the library
5069def gitUrl = ' https://github.com/mcsong/AppStoreLibrary.git' // Git repository URL
5170
52- group = " <maven group id>" // Maven Group ID for the artifact
71+ Properties properties = new Properties ()
72+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
5373
74+ def bintray_user = properties. getProperty(" bintray.user" )
75+ def bintray_api_key = properties. getProperty(" bintray.apikey" )
76+
77+ bintray {
78+ user = bintray_user
79+ key = bintray_api_key
80+
81+ configurations = [' archives' ] // When uploading configuration files
82+ pkg {
83+ repo = ' maven'
84+ name = ' AppStoreLibrary'
85+ desc = ' This is a library with some AppStore features'
86+ websiteUrl = siteUrl
87+ issueTrackerUrl = ' https://github.com/mcsong/AppStoreLibrary/issues'
88+ vcsUrl = gitUrl
89+ licenses = [' Apache-2.0' ]
90+ labels = [' aar' , ' android' , ' appstore' ]
91+ publicDownloadNumbers = true
92+ }
93+ }
94+
95+ group = ' net.sjava.appstore'
5496
5597install {
5698 repositories. mavenInstaller {
57- // This generates POM.xml with proper parameters
5899 pom {
59100 project {
60101 packaging ' aar'
61-
62- // Add your description here
63- name ' <Your library description>'
102+ name ' AppStoreLibrary'
64103 url siteUrl
65-
66- // Set your license
67104 licenses {
68105 license {
69106 name ' The Apache Software License, Version 2.0'
@@ -72,31 +109,29 @@ install {
72109 }
73110 developers {
74111 developer {
75- id ' <your user ID> '
76- name ' <your name> '
77- email ' <your email> '
112+ id ' mcsong '
113+ name ' Justin(Moo Chan) Song '
114+ email ' mcsong@gmail.com '
78115 }
79116 }
80117 scm {
81118 connection gitUrl
82119 developerConnection gitUrl
83120 url siteUrl
84-
85121 }
86122 }
87123 }
88124 }
89125}
90126
91- dependencies {
92- }
93127
94128task sourcesJar (type : Jar ) {
95129 from android. sourceSets. main. java. srcDirs
96130 classifier = ' sources'
97131}
98132
99133task javadoc (type : Javadoc ) {
134+ options. charSet = ' UTF-8'
100135 source = android. sourceSets. main. java. srcDirs
101136 classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
102137}
@@ -111,6 +146,8 @@ artifacts {
111146 archives sourcesJar
112147}
113148
149+
150+ /*
114151Properties properties = new Properties()
115152properties.load(project.rootProject.file('local.properties').newDataInputStream())
116153
@@ -158,4 +195,4 @@ class Version {
158195 thisVersion
159196 }
160197}
161-
198+ */
0 commit comments