-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.53 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 = '0.7.0'
group = "com.jtruelove.vertx"
archivesBaseName = "vertx-util"
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.4.2'
compile 'io.vertx:vertx-web:3.4.2'
compile "io.vertx:vertx-codegen:3.4.2"
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'commons-lang:commons-lang:2.6'
compile 'javax.ws.rs:javax.ws.rs-api:2.0.1'
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.1"
testCompile "junit:junit:4.11"
testCompile "io.vertx:vertx-unit:3.4.2"
testCompile 'io.vertx:vertx-web:3.4.2:tests'
testCompile 'io.vertx:vertx-core:3.4.2:tests'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
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
}