@@ -20,94 +20,94 @@ android {
2020 abortOnError false
2121 }
2222 }
23+ }
24+ dependencies {
25+ compile fileTree(dir : ' libs' , include : [' *.jar' ])
26+ testCompile ' junit:junit:4.12'
27+ compile ' com.android.support:appcompat-v7:25.2.0'
28+ compile ' com.facebook.rebound:rebound:0.3.8'
29+ }
2330
24- dependencies {
25- compile fileTree(dir : ' libs' , include : [' *.jar' ])
26- testCompile ' junit:junit:4.12'
27- compile ' com.android.support:appcompat-v7:25.2.0'
28- compile ' com.facebook.rebound:rebound:0.3.8'
29- }
30-
31- apply plugin : ' com.github.dcendents.android-maven'
32- apply plugin : ' com.jfrog.bintray'
31+ apply plugin : ' com.github.dcendents.android-maven'
32+ apply plugin : ' com.jfrog.bintray'
3333
34- version = " 0.1.1"
35- def siteUrl = ' https://github.com/yadav-rahul/TastyToast' // project homepage
36- def gitUrl = ' https://github.com/yadav-rahul/TastyToast.git' // project git
37- group = " com.sdsmdg.tastytoast"
34+ version = " 0.1.1"
35+ def siteUrl = ' https://github.com/yadav-rahul/TastyToast' // project homepage
36+ def gitUrl = ' https://github.com/yadav-rahul/TastyToast.git' // project git
37+ group = " com.sdsmdg.tastytoast"
3838
39- install {
40- repositories. mavenInstaller {
41- // This generates POM.xml with proper parameters
42- pom {
43- project {
44- packaging ' aar'
45- name ' TastyToast For Android'
46- url siteUrl
47- licenses {
48- license {
49- name ' The Apache software License, Version 2.0'
50- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
51- }
52- }
53- developers {
54- developer {
55- id ' '
56- name ' Rahul'
57- 58- }
39+ install {
40+ repositories. mavenInstaller {
41+ // This generates POM.xml with proper parameters
42+ pom {
43+ project {
44+ packaging ' aar'
45+ name ' TastyToast For Android'
46+ url siteUrl
47+ licenses {
48+ license {
49+ name ' The Apache software License, Version 2.0'
50+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
5951 }
60- scm {
61- connection gitUrl
62- developerConnection gitUrl
63- url siteUrl
52+ }
53+ developers {
54+ developer {
55+ id ' '
56+ name ' Rahul'
57+ 6458 }
6559 }
60+ scm {
61+ connection gitUrl
62+ developerConnection gitUrl
63+ url siteUrl
64+ }
6665 }
6766 }
6867 }
69- task sourcesJar(type : Jar ) {
70- from android. sourceSets. main. java. srcDirs
71- classifier = ' sources'
72- }
68+ }
69+ task sourcesJar (type : Jar ) {
70+ from android. sourceSets. main. java. srcDirs
71+ classifier = ' sources'
72+ }
7373
74- task javadoc(type : Javadoc ) {
75- source = android. sourceSets. main. java. srcDirs
76- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
77- }
74+ task javadoc (type : Javadoc ) {
75+ source = android. sourceSets. main. java. srcDirs
76+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
77+ }
7878
79- task javadocJar(type : Jar , dependsOn : javadoc) {
80- classifier = ' javadoc'
81- from javadoc. destinationDir
82- }
79+ task javadocJar (type : Jar , dependsOn : javadoc) {
80+ classifier = ' javadoc'
81+ from javadoc. destinationDir
82+ }
8383
84- javadoc {
85- options {
86- encoding ' UTF-8'
87- charSet ' UTF-8'
88- author true
89- }
84+ javadoc {
85+ options {
86+ encoding ' UTF-8'
87+ charSet ' UTF-8'
88+ author true
9089 }
90+ }
9191
92- artifacts {
93- archives javadocJar
94- archives sourcesJar
95- }
92+ artifacts {
93+ archives javadocJar
94+ archives sourcesJar
95+ }
9696
9797
98- Properties properties = new Properties ()
99- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
100- bintray {
101- user = properties. getProperty(" bintray.user" )
102- key = properties. getProperty(" bintray.apikey" )
103- configurations = [' archives' ]
104- pkg {
105- repo = " maven"
106- name = " tasty-toast" // project name in maven
107- websiteUrl = siteUrl
108- vcsUrl = gitUrl
109- licenses = [" Apache-2.0" ]
110- publish = true
111- }
98+ Properties properties = new Properties ()
99+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
100+ bintray {
101+ user = properties. getProperty(" bintray.user" )
102+ key = properties. getProperty(" bintray.apikey" )
103+ configurations = [' archives' ]
104+ pkg {
105+ repo = " maven"
106+ name = " tasty-toast" // project name in maven
107+ websiteUrl = siteUrl
108+ vcsUrl = gitUrl
109+ licenses = [" Apache-2.0" ]
110+ publish = true
112111 }
112+ }
113113
0 commit comments