@@ -8,7 +8,7 @@ android {
88 minSdkVersion 10
99 targetSdkVersion 22
1010 versionCode 1
11- versionName " 0.1.0 "
11+ versionName " 0.0.5 "
1212 }
1313 buildTypes {
1414 release {
@@ -32,6 +32,117 @@ android {
3232// options.links("http://d.android.com/reference/");
3333// }
3434// }
35+
36+ apply plugin : ' maven'
37+
38+ task createPom << {
39+ pom {
40+ project {
41+ groupId ' com.firebase'
42+ artifactId ' firebase-ui'
43+ version ' 0.0.5-SNAPSHOT'
44+
45+ /* TODO: generate this
46+ build {
47+ plugins {
48+ plugin {
49+ groupId = 'org.apache.maven.plugins'
50+ artifactId = 'maven-compiler-plugin'
51+ configuration {
52+ source = '1.6'
53+ target = '1.6'
54+ }
55+ }
56+ }
57+ }
58+ <build>
59+ <plugins>
60+ <plugin>
61+ <groupId>org.apache.maven.plugins</groupId>
62+ <artifactId>maven-compiler-plugin</artifactId>
63+ <version>3.1</version>
64+ <configuration>
65+ <source>1.6</source>
66+ <target>1.6</target>
67+ </configuration>
68+ </plugin>
69+ </plugins>
70+ </build>
71+ */
72+ dependencies {
73+ compile ' com.android.support:appcompat-v7:22.2.0'
74+ compile ' com.firebase:firebase-client-android:2.3.1'
75+ compile ' com.android.support:recyclerview-v7:22.2.0'
76+ }
77+ licenses {
78+ license {
79+ name ' MIT'
80+ url ' http://firebase.mit-license.org'
81+ }
82+ }
83+ scm {
84+ connection ' scm:git:git@github.com:firebase/FirebaseUI-Android.git'
85+ developerConnection ' scm:git:git@github.com:firebase/FirebaseUI-Android.git'
86+ url ' https://github.com/firebase/FirebaseUI-Android'
87+ }
88+ }
89+ }. writeTo(" pom.xml" )
90+ }
91+
92+ version = " 0.0.5"
93+ group = " com.firebase"
94+
95+ configurations {
96+ archives {
97+ extendsFrom configurations. default
98+ }
99+ }
100+
101+ apply plugin : ' signing'
102+
103+ signing {
104+ required { has(" release" ) && gradle. taskGraph. hasTask(" uploadArchives" ) }
105+ sign configurations. archives
106+ }
107+
108+
109+ uploadArchives {
110+ configuration = configurations. archives
111+ repositories. mavenDeployer {
112+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
113+
114+ repository(url : sonatypeRepo) {
115+ authentication(userName : sonatypeUsername,
116+ password : sonatypePassword)
117+ }
118+
119+ pom. project {
120+ name ' FirebaseUI library'
121+ packaging ' aar'
122+ description ' FirebaseUI library for Android applications'
123+ url ' https://github.com/firebase/FirebaseUI-Android'
124+
125+ scm {
126+ connection ' scm:git:git@github.com:firebase/FirebaseUI-Android.git'
127+ developerConnection ' scm:git:git@github.com:firebase/FirebaseUI-Android.git'
128+ url ' https://github.com/firebase/FirebaseUI-Android'
129+ }
130+
131+ organization {
132+ name ' Firebase'
133+ url ' https://www.firebase.com/'
134+ }
135+
136+ licenses {
137+ license {
138+ name ' MIT'
139+ url ' http://firebase.mit-license.org'
140+ }
141+ }
142+ }
143+ }
144+ }
145+
35146dependencies {
36147 compile fileTree(dir : ' libs' , include : [' *.jar' ])
37148 compile ' com.android.support:appcompat-v7:22.2.0'
0 commit comments