-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
79 lines (64 loc) · 2.06 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
def nowDate = new Date()
def nowFormattedDate = nowDate.format("yyyy-MM-dd/HH:mm:ss")
def vendorName = "greetgo!"
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'idea'
version = '0.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "kz.greetgo.sandbox"
eclipse.project.natures 'org.springsource.ide.eclipse.gradle.core.nature'
compileJava.options.debugOptions.debugLevel = "source,lines,vars"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.debugOptions.debugLevel = "source,lines,vars"
compileTestJava.options.encoding = "UTF-8"
}
subprojects {
project.eclipse.classpath.file.whenMerged { cp ->
if (project.hasProperty("sourceCompatibility")) {
cp.entries.findAll { it.path.contains('JRE_CONTAINER') }.each {
it.path += "/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/" +
"JavaSE-$project.sourceCompatibility"
}
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
ext.jacksonVersion = "2.7.3"
ext.depinjectVersion = '2.0.0'
ext.greetgoDbVersion = '2.0.0'
ext.greetgoConfVersion = '0.1.5'
ext.greetgoMvcVersion = "2.0.7"
ext.jettyVersion = '9.4.0.v20161208'
ext.guavaVersion = '23.0'
testCompile 'org.testng:testng:6.5.1'
compile 'org.easytesting:fest-assert-core:2.0M10'
//compile 'com.google.code.findbugs:annotations:2.0.1'
}
jar {
manifest {
attributes 'Implementation-Title': project.name, 'Implementation-Version': version,
'Implementation-Vendor': vendorName, 'Built-By': System.getProperty("user.name"), 'Built-At': nowFormattedDate
}
}
sourceSets {
main {
java.srcDirs = ["src"]
resources.srcDirs = ["src", "src_resources"]
//output.resourcesDir = "build/classes/main"
}
test {
java.srcDirs = ["test_src"]
resources.srcDirs = ["test_src", "test_resources"]
//output.resourcesDir = "build/classes/test"
}
}
//noinspection GroovyMissingReturnStatement
test { useTestNG() }
}