-
Notifications
You must be signed in to change notification settings - Fork 0
/
_build.gradle_multi
131 lines (113 loc) · 3.58 KB
/
_build.gradle_multi
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
// ビルドスクリプト
buildscript {
ext {
springBootVersion = '1.5.4.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
allprojects {
//プラグインの指定
apply {
plugin 'eclipse'
}
}
subprojects {
//プラグインの指定
apply {
plugin 'java'
plugin 'war'
plugin 'org.springframework.boot'
plugin 'jacoco' // コードカバレッジ
}
// リポジトリ
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/'}
}
// 外部依存関係の定義
dependencies {
// 本体
compile group: 'org.springframework.boot', name: 'spring-boot-devtools'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-validation'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
// compile group: 'org.springframework.boot', name: 'spring-boot-starter-batch'
compile group: 'org.seasar.doma.boot', name: 'doma-spring-boot-starter', version: '1.+'
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity4', version: '2.+'
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-java8time', version: '2.+'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.+'
runtime group: 'mysql', name: 'mysql-connector-java'
}
// javaコンパイルバージョン
sourceCompatibility = 1.8
// warファイル定義
war {
baseName = 'rmsweb'
}
// jarファイル定義
jar {
baseName = 'rmsweb'
version = '0.0.1-SNAPSHOT'
}
// javadoc
javadoc {
options.charSet = 'UTF-8'
options.encoding = 'UTF-8'
}
//
test {
exclude '**/*$*' // JUnitのEnclosedテストランナー対策(2重実行防止)
jvmArgs = ['-Dspring.profiles.active=test'] // テスト用プロパティファイルの読み込み(application-test.properties)
}
//
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
}
}
// DomaのSQLファイルをコンパイルより前に出力先Dirにコピーするための設定
processResources.destinationDir = compileJava.destinationDir
compileJava.dependsOn processResources
apply from:'../eclipse.gradle'
apply from:'../doma-gen.gradle'
}
project(':rms-base') {
}
project(':rms-domain') {
dependencies {
compile project(':rms-base')
}
}
project(':rms-web') {
dependencies {
compile project(':rms-base')
compile project(':rms-domain')
}
}
project(':rms-batch') {
}
project(':rms-test') {
dependencies {
compile project(':rms-base')
compile project(':rms-domain')
compile project(':rms-web')
compile project(':rms-batch')
// test用
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
testCompile group: 'org.springframework.security', name: 'spring-security-test', version: '4.+'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.+'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '3.+'
testCompile group: 'ru.yandex.qatools.ashot', name: 'ashot', version: '+'
testCompile files('libs/SeleniumBase.jar')
}
}