-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
99 lines (81 loc) · 2.31 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
plugins {
id "com.jfrog.bintray" version "1.7"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
version = '1.0.4'
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'com.tngtech.java', name: 'junit-dataprovider', version: '1.9.2'
testCompile "org.mockito:mockito-core:1.+"
}
def siteUrl = 'https://github.com/egulias/EmailValidator4J'
def gitUrl = 'https://github.com/egulias/EmailValidator4J.git'
group = "com.egulias"
String getProperty (String name, String value) {
project.hasProperty (name)? project.property (name) : value
}
allprojects {
apply plugin: 'java'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
task createPom {
doLast {
pom {
project {
groupId 'emailvalidator4j'
artifactId "emailvalidator4j-${project.version}"
version project.version
inceptionYear '2015'
licenses {
license {
name 'MIT'
url 'http://opensource.org/licenses/mit-license.php'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}
}
bintray {
user = getProperty("bintray.user", "anon")
key = getProperty("bintray.apikey", "anon")
configurations = ['archives']
pkg {
repo = "maven"
name = "EmailValidator4J"
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["MIT"]
labels = ['email', 'validator', 'email validation']
issueTrackerUrl = 'https://github.com/egulias/EmailValidator4J/issues'
publish = true
version {
name = '1.0.4' //Bintray logical version name
desc = 'Improved exception control and more invalid emails handled'
vcsTag = '1.0.4'
}
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourceJar
}