Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-koush-Widgets: Commit

external/koush/Widgets


Commit MetaInfo

Revisión2cc45f35f51445015edda6063b84e0beff532b2d (tree)
Tiempo2013-05-31 02:27:22
AutorKoushik Dutta <koushd@gmai...>
CommiterKoushik Dutta

Log Message

build.gradle

Change-Id: Ifb6363e847e41929f5fafcac9af0067b2637b493

Cambiar Resumen

Diferencia

--- /dev/null
+++ b/Widgets/build.gradle
@@ -0,0 +1,92 @@
1+buildscript {
2+ repositories {
3+ maven { url 'http://repo1.maven.org/maven2' }
4+ }
5+ dependencies {
6+ classpath 'com.android.tools.build:gradle:0.4'
7+ }
8+}
9+apply plugin: 'android-library'
10+
11+dependencies {
12+ compile fileTree(dir: 'libs', include: '*.jar')
13+}
14+
15+android {
16+ sourceSets {
17+ main {
18+ manifest.srcFile 'AndroidManifest.xml'
19+
20+ java.srcDirs 'src'
21+ res.srcDirs 'res'
22+ }
23+ }
24+
25+ compileSdkVersion 17
26+ buildToolsVersion "17"
27+
28+ defaultConfig {
29+ minSdkVersion 7
30+ targetSdkVersion 16
31+ }
32+}
33+
34+
35+apply plugin: 'maven'
36+apply plugin: 'signing'
37+
38+signing {
39+ sign configurations.archives
40+}
41+
42+'git remote -v'.execute(null, new File(file('.').absolutePath)).getText().find('git@github.com:(.*?)/(.*?).git') {
43+ match ->
44+ user = match[1]
45+ repo = match[2]
46+}
47+
48+repoInfo = new groovy.json.JsonSlurper().parseText(new URL('https://api.github.com/repos/' + ext.user + '/' + ext.repo).getText())
49+
50+group = 'com.koushikdutta.' + repo.toLowerCase()
51+android_manifest = new XmlParser(false, false).parseText(new File('AndroidManifest.xml').getText())
52+version = android_manifest.'@android:versionName'
53+
54+uploadArchives {
55+ repositories {
56+ mavenDeployer {
57+ beforeDeployment { MavenDeployment deployment -> signPom(deployment) }
58+
59+ repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
60+ authentication(userName: sonatypeUsername, password: sonatypePassword)
61+ }
62+
63+ pom.project {
64+ name repo
65+ packaging 'jar'
66+ description repoInfo.description
67+ url repoInfo.html_url
68+
69+ scm {
70+ url repoInfo.git_url
71+ connection repoInfo.git_url
72+ developerConnection repoInfo.ssh_url
73+ }
74+
75+ licenses {
76+ license {
77+ name 'The Apache Software License, Version 2.0'
78+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
79+ distribution 'repo'
80+ }
81+ }
82+
83+ developers {
84+ developer {
85+ id user
86+ name user
87+ }
88+ }
89+ }
90+ }
91+ }
92+}
\ No newline at end of file
Show on old repository browser