-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
73 lines (61 loc) · 1.71 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}
apply plugin: 'maven-publish'
publishing {
repositories {
maven {
url 'https://dl.bintray.com/engagingspaces/maven'
}
}
}
ext {
vertxVersion = '3.4.0'
junitVersion = '4.12'
}
apply plugin: 'java'
apply from: "$projectDir/gradle/coverage.gradle"
apply from: "$projectDir/gradle/publishing.gradle"
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/engagingspaces/maven'
}
}
group = 'io.engagingspaces'
version = '1.0.0'
task docProcessing(type: JavaCompile, group: 'build') {
source = sourceSets.main.java
classpath = configurations.compile + configurations.compileOnly
destinationDir = project.file('src/main/asciidoc')
options.compilerArgs = [
"-proc:only",
"-processor", "io.vertx.docgen.JavaDocGenProcessor",
"-Adocgen.output=$buildDir/asciidoc",
"-Adocgen.source=$projectDir/src/main/asciidoc/index.adoc"
]
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependsOn project.tasks.docProcessing
options.compilerArgs = [ "-Xlint:unchecked", "-Xdiags:verbose" ]
}
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compileOnly "io.vertx:vertx-docgen:$vertxVersion"
testCompile "junit:junit:$junitVersion"
testCompile 'org.awaitility:awaitility:2.0.0'
testCompile "io.vertx:vertx-unit:$vertxVersion"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14'
distributionUrl = "http://services.gradle.org/distributions/gradle-2.14-all.zip"
}