-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (65 loc) · 1.73 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3"
classpath "com.github.townsfolk:gradle-release:1.2"
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply from: file("quality.gradle")
apply from: file("demo.gradle")
apply plugin: 'maven-publish'
sourceCompatibility = 1.6
group = 'com.github.jaystgelais'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '16.0'
compile group: 'net.sf.cssbox', name: 'cssbox', version: '4.4'
compile group: 'javax.mail', name: 'mail', version: '1.4.7'
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'org.jvnet.mock-javamail', name: 'mock-javamail', version: '1.9'
}
idea {
project {
languageLevel = "1.6"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier "sources"
extension "jar"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier "javadoc"
extension "jar"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
apply plugin: 'bintray'
apply plugin: 'release'
bintray {
user = project.hasProperty("bintrayUserName") ? bintrayUserName : null
key = project.hasProperty("bintrayApiKey") ? bintrayApiKey : null
publications = ["mavenJava"]
pkg {
repo = 'main'
name = 'easy-mail'
licenses = ['Apache-2.0']
}
}
bintrayUpload.dependsOn build, sourcesJar, javadocJar
createReleaseTag.dependsOn bintrayUpload