Skip to content

Commit 6607d91

Browse files
adds signing and upload information
1 parent 7eb1f86 commit 6607d91

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

README.markdown

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ If you are referencing a newer version of the Android Support Library in your ap
160160
The build requires Gradle. Operations are very simple:
161161

162162
* install [gradle](http://www.gradle.org/)
163-
* `gradle build` builds the aar
163+
* `gradle assemble` builds all artifacts
164164
* `gradle jar` builds the jar
165165

166166
After putting Crouton in a repository you can add it as dependency.
@@ -171,6 +171,33 @@ compile('de.keyboardsurfer.android.widget:crouton:1.8.1') {
171171
}
172172
```
173173

174+
###Signing
175+
176+
To sign your artifacts, create a file at the repository root, called `gradle.properties` that contains:
177+
178+
179+
```
180+
# makes building faster
181+
org.gradle.daemon true
182+
183+
# only requried for the demo
184+
keyStore=theKeyStoreFileName
185+
storePassword=theStorePassword
186+
keyAlias=theKeyAlias
187+
keyPassword=theKeyPassword
188+
189+
# for uploading to a repository
190+
repositoryUrl=yourRepositoryUrl
191+
sonatypeUser=yourSonatypeUser
192+
sonatypePass=yourSonatypePassword
193+
194+
# if you want to sign the built artifacts
195+
signing.keyId=yourKeyId
196+
signing.password=yourGPGPassword
197+
signing.secretKeyRingFile=/path/to/your/secring
198+
```
199+
200+
174201
## Contribution
175202

176203
###Questions

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ uploadArchives {
9797
mavenDeployer {
9898
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
9999

100-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
100+
repository(url: repositoryUrl) {
101101
authentication(userName: sonatypeUser, password: sonatypePass)
102102
}
103103

sample/project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
14-
target=android-18
14+
target=android-19
15+
android.library.reference.1=../library

0 commit comments

Comments
 (0)