Skip to content

Commit

Permalink
Readme update and bintray plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
egulias committed Jun 3, 2015
1 parent 920a369 commit 5c9f63b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# EmailValidator4J
[![Build Status](https://travis-ci.org/egulias/EmailValidator4J.svg?branch=master)](https://travis-ci.org/egulias/EmailValidator4J)

RFC strict EmailValidator for Java
Simple RFC compliant EmailValidator for Java.

**Suported RFCs**

Expand All @@ -26,11 +26,26 @@ dependencies {

[JCenter]: https://bintray.com/egulias/maven/email-validator-4j

## Why not using ANTLR
Because you don't want to download internet to validate an email.

Getting Started
---------------

```java

import emailvalidator4j.EmailValidator

public class ValidateEmail {
public static void main (String[] args) {
EmailValidator validator = new EmailValidator();
if (validator->isValid(args[0]) {
System.out.println("Valid email");
} else {
System.out.println("Invalid email");
}
}
}
```

Validation Strategies
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

plugins {
id "com.jfrog.bintray" version "1.1"
}

apply plugin: 'java'
apply plugin: 'idea'

version = '1.0'

repositories {
Expand Down

0 comments on commit 5c9f63b

Please sign in to comment.