-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (70 loc) · 2.18 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
81
buildscript {
ext {
vertxVersion = "3.5.4"
logbackVersion = "1.2.3"
slf4jVersion = "1.5.25"
reflectionVersion = "0.9.11"
gradleVersion = "4.3.1"
powerMockVersion = "1.6.4"
commonsLang3Version = "3.5"
sourceJavaVersion = "1.8"
targetJavaVersion = "1.8"
}
}
plugins {
id 'java'
id 'eclipse'
id 'application'
}
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
mainClassName = 'com.greyseal.vertx.boot.AppLauncher'
group 'com.greyseal.vertx.boot'
version '1.0-SNAPSHOT'
sourceSets {
generated {
java.srcDir "${projectDir}/src/generated/java"
}
}
dependencies {
compile "io.vertx:vertx-web:${vertxVersion}",
"io.vertx:vertx-rx-java2:${vertxVersion}",
"io.vertx:vertx-service-proxy:${vertxVersion}",
"ch.qos.logback:logback-classic:${logbackVersion}",
"ch.qos.logback:logback-core:${logbackVersion}",
"org.slf4j:slf4j-api:${slf4jVersion}",
"org.apache.commons:commons-lang3:${commonsLang3Version}",
"org.reflections:reflections:${reflectionVersion}",
"io.vertx:vertx-service-proxy:${vertxVersion}:processor",
"io.vertx:vertx-web-client:${vertxVersion}"
compileOnly "io.vertx:vertx-codegen:${vertxVersion}"
testCompile "io.vertx:vertx-unit:${vertxVersion}"
testCompile "org.powermock:powermock-mockito-release-full:${powerMockVersion}"
}
task annotationProcessing(type: JavaCompile, group: 'build') { // codegen
source = sourceSets.main.java
classpath = configurations.compile + configurations.compileOnly
destinationDir = project.file('src/main/generated')
options.compilerArgs = [
"-proc:only",
"-processor", "io.vertx.codegen.CodeGenProcessor",
"-AoutputDirectory=${project.projectDir}/src/main"
]
}
compileJava {
targetCompatibility = sourceJavaVersion
sourceCompatibility = targetJavaVersion
dependsOn annotationProcessing
}
sourceSets {
main {
java {
srcDirs += 'src/main/generated'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleVersion
}