-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (50 loc) · 1.63 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
buildscript {
repositories {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'GitHub'
addArtifactPattern 'http://cloud.github.com/downloads/[organisation]/[module]/[module]-[revision].[ext]'
}
}
dependencies {
def tomcatPluginVersion = '0.9.2'
classpath "bmuschko:gradle-tomcat-plugin:${tomcatPluginVersion}"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'project-report'
apply plugin: 'eclipse'
apply plugin: 'checkstyle'
sourceCompatibility = 1.6
version = '0.1'
repositories {
mavenCentral()
}
configurations {
tomcatLibs
}
dependencies {
compile 'com.google.inject:guice:3.0'
compile 'com.google.guava:guava:12.0.1'
testCompile 'junit:junit:4.8.1'
tomcatLibs 'javax.servlet:javax.servlet-api:3.0.1'
tomcatLibs 'javax.servlet.jsp:jsp-api:2.2'
}
eclipse {
classpath {
// Gradle defaults main classes dir to /bin, make it build/classes/main
defaultOutputDir = sourceSets.main.output.classesDir
file {
whenMerged { cp ->
// Gradle defaults test classes dir to /bin, make it build/classes/test
cp.entries.findAll { it.kind == 'src' && it.path.startsWith("src/test/") }*.output = project.relativePath(sourceSets.test.output.classesDir)
}
}
}
}
// completely overwrite existing Eclipse files
tasks.eclipse.dependsOn(cleanEclipse)
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0'
}