-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
152 lines (126 loc) · 4.32 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
buildscript {
// Executed in context of buildscript
repositories {
mavenLocal()
mavenCentral()
jcenter()
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath 'org.anarres.gradle:gradle-stdproject-plugin:1.0.8'
}
}
apply plugin: 'org.anarres.stdproject'
stdproject {
javadocLink "https://fasterxml.github.io/jackson-core/javadoc/2.5/"
javadocLink "https://fasterxml.github.io/jackson-databind/javadoc/2.5/"
javadocLink "http://docs.guava-libraries.googlecode.com/git/javadoc/"
javadocGroup "QApi/QMP: QEmu Management Protocol", "org.anarres.qemu.qapi*"
javadocGroup "Command Line Building and Execution", "org.anarres.qemu.exec*"
javadocGroup "Image Management and Manipulation", "org.anarres.qemu.image*"
javadocGroup "Process Management", "org.anarres.qemu.manager*"
javadocGroup "Demos and Examples", "org.anarres.qemu.examples*"
}
subprojects {
group = "org.anarres.qemu"
apply plugin: 'org.anarres.stdmodule'
stdmodule {
description "QEmu/KVM process manager and RPC API."
author id: 'shevek', name: 'Shevek', email: 'github@anarres.org'
license 'Apache-2.0'
}
dependencies {
compile 'com.google.code.findbugs:annotations:2.0.3'
compile "org.slf4j:slf4j-api:1.7.12"
compile "com.google.guava:guava:18.0"
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.2'
}
sourceCompatibility = 1.8
animalsniffer {
// Currently skipped I believe because of this bug:
// https://github.com/mojohaus/animal-sniffer/pull/32
// If org.anarres.gradle:gradle-stdproject-plugin switches to
// https://github.com/xvik/gradle-animalsniffer-plugin then
// animal sniffer to 1.16 might fix the problem.
skip = true
signature = "org.codehaus.mojo.signature:java15:+@signature"
}
}
project(':qemu-qapi') {
sourceSets {
generate
}
configurations {
generateCompile.extendsFrom compile
generateRuntime.extendsFrom runtime
generateCompile.exclude group: 'commons-logging'
generateCompile.exclude group: 'log4j'
}
dependencies {
generateCompile "com.google.guava:guava:18.0"
generateCompile "org.apache.velocity:velocity:1.7"
generateCompile "org.apache.velocity:velocity-tools:2.0"
generateCompile "net.sf.jopt-simple:jopt-simple:4.8"
// generateCompile "commons-logging:commons-logging:1.1.3"
generateCompile "com.google.code.gson:gson:2.3.1"
def slf4jVersion = '1.7.12'
generateRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
generateRuntime "org.slf4j:log4j-over-slf4j:$slf4jVersion"
generateRuntime "org.slf4j:jcl-over-slf4j:$slf4jVersion"
testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.5.2"
testCompile project(':qemu-manager')
testCompile project(':qemu-exec').sourceSets.test.output
}
task('generate', type: JavaExec, dependsOn: compileGenerateJava) {
outputs.upToDateWhen { false }
doFirst {
delete fileTree("src/main/java/org/anarres/qemu/qapi/api") {
include "*.java"
exclude "package-info.java"
}
}
main = 'org.anarres.qemu.qapi.generator.Main'
classpath = configurations.generateRuntime + sourceSets.generate.output
// See also http://repo.or.cz/w/qemu/qmp-unstable.git/blob_plain/HEAD:/qapi-schema.json
}
}
project(':qemu-image') {
dependencies {
}
}
project(':qemu-exec') {
dependencies {
compile project(':qemu-image')
compile 'org.codehaus.mojo:animal-sniffer-annotations:1.14'
// Can be changed to qemu-qapi when we move QEmuProcess to qemu-exec.
testCompile project(':qemu-manager')
// testCompile 'commons-io:commons-io:2.4'
}
}
project(':qemu-manager') {
dependencies {
compile project(':qemu-qapi')
compile project(':qemu-exec')
testCompile project(':qemu-exec').sourceSets.test.output
}
}
project(':qemu-examples') {
dependencies {
compile project(':qemu-manager')
compile 'com.google.auto.service:auto-service:1.0-rc2'
compile 'com.jcraft:jsch:0.1.52'
testCompile project(':qemu-exec').sourceSets.test.output
}
apply plugin: 'application'
mainClassName = 'org.anarres.qemu.examples.Main'
animalsniffer {
// I can not be bothered to write examples in JDK1.5
skip = true
}
}
aggregateJavadoc {
options.links "http://docs.oracle.com/javase/6/docs/api/",
"https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/"
options.use true
options.linkSource true
}