-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
80 lines (71 loc) · 1.74 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
plugins {
id "org.sonarqube" version "2.5"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'pmd'
pmd {
toolVersion='5.5.2'
ruleSets=["java-basic","java-imports","java-strings","java-clone","java-design"]
}
apply plugin: 'findbugs'
findbugs {
sourceSets = [sourceSets.main]
toolVersion = "3.0.1"
}
libsDirName = 'build/'
version = '0.9.2.2'
archivesBaseName = 'GDH'
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
test {
exclude '**/*Suite.class'
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
}
sourceSets.main.resources.srcDirs = [ "resources/" ]
dependencies {
compile 'io.vertx:vertx-core:3.5.1'
testCompile 'io.vertx:vertx-unit:3.5.1'
testCompile 'junit:junit:4.12'
compile 'io.reactivex:rxjava:1.3.0'
compile 'com.google.code.findbugs:annotations:3.0.1'
compile 'log4j:log4j:1.2.17'
}
clean {
delete "libs/"
delete "build/"
delete "bin/"
delete project.name+"-"+project.version+".jar"
}
task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}
task packageSources(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives packageJavadoc
archives packageSources
}
jar {
dependsOn configurations.runtime
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Implementation-Title': project.name,
'Implementation-Version': project.version
}
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
task testSuite(type: Test) {
include '**VertxTestSuite.class'
}