forked from sczyh30/vertx-kue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (89 loc) · 2.62 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
configure(allprojects) { project ->
ext {
vertxVersion = "3.3.3"
}
apply plugin: 'java'
repositories {
jcenter()
}
dependencies {
compile("io.vertx:vertx-core:${vertxVersion}")
compile("io.vertx:vertx-rx-java:${vertxVersion}")
compile("io.vertx:vertx-hazelcast:${vertxVersion}")
compileOnly("io.vertx:vertx-lang-ruby:${vertxVersion}")
compileOnly("io.vertx:vertx-codegen:${vertxVersion}")
testCompile("io.vertx:vertx-unit:${vertxVersion}")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
sourceSets {
main {
java {
srcDirs += 'src/main/generated'
}
}
}
compileJava {
targetCompatibility = 1.8
sourceCompatibility = 1.8
}
}
project("kue-core") {
dependencies {
compile("io.vertx:vertx-redis-client:${vertxVersion}")
compile("io.vertx:vertx-service-proxy:${vertxVersion}")
}
jar {
archiveName = 'vertx-blueprint-kue-core.jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'io.vertx.core.Launcher'
attributes 'Main-Verticle': 'io.vertx.blueprint.kue.queue.KueVerticle'
}
}
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 = 1.8
sourceCompatibility = 1.8
dependsOn annotationProcessing
}
}
project("kue-http") {
dependencies {
compile(project(":kue-core"))
compile("io.vertx:vertx-web:${vertxVersion}")
compile("io.vertx:vertx-web-templ-jade:${vertxVersion}")
}
jar {
archiveName = 'vertx-blueprint-kue-http.jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'io.vertx.core.Launcher'
attributes 'Main-Verticle': 'io.vertx.blueprint.kue.http.KueHttpVerticle'
}
}
}
project("kue-example") {
dependencies {
compile(project(":kue-core"))
}
jar {
archiveName = 'vertx-blueprint-kue-example.jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'io.vertx.core.Launcher'
attributes 'Main-Verticle': 'io.vertx.blueprint.kue.example.LearningVertxVerticle'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}