-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
115 lines (98 loc) · 3.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
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
buildscript {
ext {
springBootVersion = '1.5.6.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
version = '0.1.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
jar {
baseName = 'enot_auto_builder'
version = version
}
ext {
metaModelsSourcesDir = file('src/generated/java')
}
springBoot {
buildInfo()
}
configurations {
querydslapt
}
sourceSets {
main {
java {
srcDir metaModelsSourcesDir
}
}
test_integration {
java {
compileClasspath = sourceSets.main.output + configurations.testRuntime
runtimeClasspath = output + compileClasspath
srcDir file('src/test_integration/java')
}
resources.srcDir file('src/test_integration/resources')
}
}
task querymodels(type: JavaCompile, group: 'build') {
doFirst {
delete metaModelsSourcesDir
metaModelsSourcesDir.mkdirs()
}
classpath = configurations.compile + configurations.querydslapt
destinationDir = metaModelsSourcesDir
source = sourceSets.main.java
options.compilerArgs = [
"-proc:only",
"-processor", "com.querydsl.apt.jpa.JPAAnnotationProcessor",
"-s", metaModelsSourcesDir.toString()
]
}
task test_integration(type: Test) {
testClassesDir = sourceSets.test_integration.output.classesDir
classpath = sourceSets.test_integration.runtimeClasspath
}
idea {
module {
sourceDirs += metaModelsSourcesDir
generatedSourceDirs += metaModelsSourcesDir
}
}
compileJava.dependsOn querymodels
check.dependsOn test_integration
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.integration:spring-integration-mail')
compile('org.springframework.integration:spring-integration-core')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('com.zaxxer:HikariCP')
compile('org.modelmapper:modelmapper:1.1.0')
compile('javax.mail:javax.mail-api')
compile('javax:javaee-api:7.0')
compile('commons-io:commons-io:2.5')
compile('org.eclipse.jgit:org.eclipse.jgit:4.8.0.201706111038-r')
compile('org.springframework.boot:spring-boot-devtools')
compile('com.github.metadave:etp:0.4')
compile('com.querydsl:querydsl-jpa:4.1.4')
compile('org.projectlombok:lombok:1.16.18')
compile('com.querydsl:querydsl-apt:4.1.4')
compile('org.apache.commons:commons-compress:1.14')
runtime('org.postgresql:postgresql')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('com.h2database:h2:1.4.196')
testCompile('org.mockito:mockito-all:1.10.19')
}