forked from OpenLMIS/open-lmis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (74 loc) · 2.65 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
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2013 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses. For additional information contact [email protected].
*/
apply plugin: 'idea'
apply plugin: 'versions'
apply plugin: 'properties'
idea.project.languageLevel = '1.7'
idea.project.jdkName = '1.7'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:1.2.0"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.3'
classpath 'net.saliman:gradle-properties-plugin:1.2.0'
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'properties'
idea {
project {
ext.languageLevel = '1.7'
ext.jdkName = '1.7'
}
}
apply plugin: 'java'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
maven {
url "http://repo.springsource.org/plugins-release/"
}
}
dependencies {
compile 'org.projectlombok:lombok:0.10.8',
'commons-io:commons-io:2.4'
testCompile 'org.hamcrest:hamcrest-all:1.3',
'org.mockito:mockito-all:1.9.5',
'junit:junit:4.8.2',
'cglib:cglib:2.2.2',
'org.powermock:powermock-mockito-release-full:1.5',
'com.natpryce:make-it-easy:3.1.0'
}
test {
jvmArgs '-XX:-UseSplitVerifier', '-XX:MaxPermSize=256m'
System.properties.get('environmentName', 'local')
systemProperties System.properties
useJUnit {
includeCategories 'org.openlmis.db.categories.UnitTests'
includeCategories 'org.openlmis.db.categories.IntegrationTests'
}
}
task IntegrationTests(type: Test) {
jvmArgs '-XX:-UseSplitVerifier', '-XX:MaxPermSize=256m'
System.properties.get('environmentName', 'local')
systemProperties System.properties
useJUnit {
includeCategories 'org.openlmis.db.categories.IntegrationTests'
}
}
}
configure(subprojects.findAll { it.name != 'db' }) {
dependencies {
testCompile project(path: ':modules:db', configuration: 'testFixtures')
}
}