-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
61 lines (51 loc) · 1.56 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
apply plugin: 'java'
// Uncomment below when doing official builds
//apply from: "gradle/sona.gradle"
version = '3.3.0'
group = "com.cyngn.vertx"
archivesBaseName = "vertx-opentsdb"
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
repositories {
mavenCentral()
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
compile 'io.vertx:vertx-core:3.3.0-SNAPSHOT'
compile "joda-time:joda-time:2.4"
compile "com.google.guava:guava:18.0"
compile "org.apache.commons:commons-lang3:3.4"
compile "io.vertx:vertx-codegen:3.3.0-SNAPSHOT"
testCompile "junit:junit:4.11"
testCompile "io.vertx:vertx-unit:3.3.0-SNAPSHOT"
testCompile "io.vertx:vertx-web:3.3.0-SNAPSHOT"
testCompile 'io.vertx:vertx-web:3.3.0-SNAPSHOT:tests'
testCompile 'io.vertx:vertx-core:3.3.0-SNAPSHOT:tests'
testCompile "org.mockito:mockito-core:1.9.5"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
task release() << {}
gradle.taskGraph.whenReady {taskGraph ->
if (!taskGraph.hasTask(release)) {
version += '-SNAPSHOT'
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}