This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
forked from RaisBA/greetgo.sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (63 loc) · 2.22 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
def nowDate = new Date()
def nowFormattedDate = nowDate.format("yyyy-MM-dd/HH:mm:ss")
def vendorName = "greetgo!"
def ggRepo = System.getenv('GG_REPO')
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()
if (ggRepo?.trim()) maven { url ggRepo.trim() }
jcenter()
}
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
attributes 'Implementation-Version': version
attributes 'Implementation-Vendor': vendorName
attributes 'Created-By': System.getProperty("user.name")
attributes 'Created-At': nowFormattedDate
}
}
sourceSets.main.java.srcDirs = ["src"]
sourceSets.main.resources.srcDirs = ["src", "src_resources"]
//sourceSets.main.output.resourcesDir = "build/classes/main"
sourceSets.test.java.srcDirs = ["test_src"]
sourceSets.test.resources.srcDirs = ["test_src", "test_resources"]
//sourceSets.test.output.resourcesDir = "build/classes/test"
//noinspection GroovyMissingReturnStatement
test { useTestNG() }
}