forked from cosu/vampires-akka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
167 lines (118 loc) · 3.87 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
153
154
155
156
157
158
159
160
161
162
163
164
165
apply plugin: 'idea'
apply plugin: 'base'
apply plugin: 'distribution'
idea{
project {
languageLevel = '1.8'
}
module {
downloadJavadoc = true // defaults to false
downloadSources = true
}
}
wrapper {
gradleVersion = '2.9'
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
task deleteLocalInstall(type: Delete) {
delete System.properties['user.home'] + "/vampires-akka/${project.name}"
}
task copyScripts(dependsOn: deleteLocalInstall, type: Copy){
from "scripts"
into System.properties['user.home'] + "/vampires-akka/scripts"
}
task installLocal(dependsOn: [installDist, copyScripts],type: Sync) {
from "${buildDir}/install/${project.name}"
into System.properties['user.home'] + "/vampires-akka/${project.name}"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'jacoco'
idea {
module {
generatedSourceDirs += file('generated')
}
}
compileJava {
targetCompatibility= 1.8
sourceCompatibility= 1.8
options.fork = true
//enable incremental compilation
options.incremental = true
}
group 'ro.cosu.vampires'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java.srcDir file('src/integTest/java')
resources.srcDir file('src/integTest/resources')
}
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
// check.dependsOn integrationTest
integrationTest.dependsOn test
dependencies {
def akkaVersion = "2.11:2.4.1"
compile "com.typesafe.akka:akka-actor_${akkaVersion}"
compile "com.typesafe.akka:akka-remote_${akkaVersion}"
compile "com.typesafe.akka:akka-slf4j_${akkaVersion}"
compile 'com.google.guava:guava:18.0'
compile 'com.google.inject:guice:4.0'
compile 'com.google.inject.extensions:guice-multibindings:4.0'
compile 'com.google.auto.value:auto-value:1.1'
compile 'com.google.code.gson:gson:2.5'
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.apache.commons:commons-exec:1.3'
compile 'org.slf4j:jul-to-slf4j:1.7.13'
testCompile 'junit:junit:4.12'
testCompile "com.typesafe.akka:akka-testkit_${akkaVersion}"
testCompile "org.mockito:mockito-core:1.+"
integrationTestCompile sourceSets.main.output
integrationTestCompile sourceSets.test.output
integrationTestCompile configurations.testCompile
integrationTestRuntime configurations.testRuntime
}
}
project(':client') {
mainClassName = "ro.cosu.vampires.client.Client"
dependencies {
compile project(':server')
compile 'io.kamon:sigar-loader:1.6.6-rev002'
compile 'io.dropwizard.metrics:metrics-core:3.1.2'
compile 'com.github.docker-java:docker-java:2.1.2'
}
}
project(':server'){
mainClassName = "ro.cosu.vampires.server.Server"
dependencies {
compile 'org.mongodb.morphia:morphia:1.0.1'
compile 'com.jcraft:jsch:0.1.53'
compile 'org.mongodb.morphia:morphia-logging-slf4j:1.0.1'
compile 'com.amazonaws:aws-java-sdk:1.10.39'
compile ('com.sparkjava:spark-core:2.3') {
exclude group: 'org.slf4j', module:'slf4j-simple'
}
}
}