Skip to content

Commit

Permalink
Upgraded gradle version + README + Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vekexasia committed Oct 10, 2014
1 parent e298061 commit 17a2fbc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 73 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -19,7 +19,7 @@ This library can be found in maven central repo. If you're using Android studio
```groovy
dependencies {
// ...
compile 'com.andreabaccega:android-form-edittext:1.0.5@aar'
compile 'com.andreabaccega:android-form-edittext:1.1.0@aar'
// ...
}
```
Expand Down
10 changes: 5 additions & 5 deletions exampleproject/build.gradle
Expand Up @@ -4,16 +4,16 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.android.tools.build:gradle:0.13.0'
}
}
apply plugin: 'android'
apply plugin: 'com.android.application'

android {
compileSdkVersion 17
buildToolsVersion '17.0.0'
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
targetSdkVersion 16
targetSdkVersion 20
}
sourceSets.main {
manifest.srcFile 'AndroidManifest.xml'
Expand Down
73 changes: 6 additions & 67 deletions library/build.gradle
Expand Up @@ -4,17 +4,17 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
classpath 'com.android.tools.build:gradle:0.13.0'
}
}
apply plugin: 'android-library'
apply plugin: 'com.android.library'

android {
compileSdkVersion 19
buildToolsVersion '19'
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
targetSdkVersion 20
}
sourceSets {
main {
Expand All @@ -30,65 +30,4 @@ android {
}

}

apply plugin: 'maven'
apply plugin: 'signing'

version = '1.0.5'
group = 'com.andreabaccega'

configurations {
archives {
extendsFrom configurations.default
}
}


signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}


uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: sonatypeRepo) {
authentication(userName: sonatypeUsername,
password: sonatypePassword)
}

pom.project {
name 'Android Form Edittext'
packaging 'aar'
artifactId 'android-form-edittext'
description 'An extension of EditText with data validation facilities'
url 'https://github.com/vekexasia/android-form-edittext'

scm {
url 'scm:git@github.com:vekexasia/android-form-edittext.git'
connection 'scm:git@github.com:vekexasia/android-form-edittext.git'
developerConnection 'scm:git@github.com:vekexasia/android-form-edittext.git'
}

licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}

developers {
developer {
id 'vekexasia'
name 'Andrea Baccega'
email 'me@andreabaccega.com'
}
}
}
}
}

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
18 changes: 18 additions & 0 deletions library/gradle.properties
@@ -0,0 +1,18 @@
VERSION_NAME=1.1.0
VERSION_CODE=1
GROUP=com.andreabaccega

POM_DESCRIPTION=An extension of EditText with data validation facilities
POM_URL=https://github.com/vekexasia/android-form-edittext
POM_SCM_URL=https://github.com/vekexasia/android-edittext-validator
POM_SCM_CONNECTION=scm:git@github.com:vekexasia/android-edittext-validator.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:vekexasia/android-edittext-validator.git
POM_LICENCE_NAME=The MIT License (MIT)
POM_LICENCE_URL=http://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=vekexasia
POM_DEVELOPER_NAME=Andrea Baccega

POM_NAME=Android Form Edittext
POM_ARTIFACT_ID=android-form-edittext
POM_PACKAGING=aar

0 comments on commit 17a2fbc

Please sign in to comment.