Skip to content

Commit

Permalink
fixed build to work with jitpack.io
Browse files Browse the repository at this point in the history
  • Loading branch information
vekexasia committed Sep 15, 2016
1 parent c35bf11 commit a1a30f1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
@@ -1,4 +1,6 @@
# Android Form EditText
[![Release](https://jitpack.io/v/com.andreabaccega/android-edittext-validator.svg)](https://jitpack.io/#com.andreabaccega/android-edittext-validator)


Android form edit text is an extension of EditText that brings data validation facilities to the edittext.

Expand All @@ -25,7 +27,7 @@ allprojects {
}
dependencies {
// ...
compile 'com.andreabaccega:android-form-edittext:1.2.1@aar'
compile 'com.andreabaccega:android-edittext-validator:1.3.0'
// ...
}
```
Expand All @@ -39,8 +41,8 @@ dependencies {
</repositories>
<dependency>
<groupId>com.andreabaccega</groupId>
<artifactId>android-form-edittext</artifactId>
<version>${com.andreabaccega.android-form-edittext-version}</version>
<artifactId>android-edittext-validator</artifactId>
<version>${...}</version>
<type>aar</type>
<scope>provided</scope>
</dependency>
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Expand Up @@ -5,5 +5,7 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

}
}
32 changes: 30 additions & 2 deletions library/build.gradle
@@ -1,5 +1,8 @@

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'

group='com.andreabaccega'

dependencies {
provided 'com.android.support:design:24.2.1'
}
Expand All @@ -24,4 +27,29 @@ android {
}
}

}
}


// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

0 comments on commit a1a30f1

Please sign in to comment.