-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle
74 lines (62 loc) · 2.21 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
group = 'com.clevergang'
version = '1.0.0'
description = 'Comparison and common patterns for non-JPA SQL mapping frameworks for Java (Jooq, Spring JDBCTemplate etc.)'
apply plugin: 'spring-boot'
apply plugin: 'java'
apply plugin: 'com.github.kt3k.ebean.enhance' // required so the enhancer works, see below
// We need Java8 for this project
compileJava {
sourceCompatibility = '1.8'
}
// this is actually required for EBean to work. EBean needs all @Entity classes to be enhanced before usage
// for gradle builds this is how the entities are enhanced. See more info here:
// http://ebean-orm.github.io/docs/setup/enhancement
// and here:
// https://github.com/kt3k/ebean-enhance-plugin
ebeanEnhance {
packages = 'com.clevergang.dbtests.repository.impl.ebean.entities.**'
agentVersion = '8.1.1'
}
dependencies {
compile(
"org.springframework.boot:spring-boot-starter-jdbc",
"org.postgresql:postgresql:9.4.1212",
"org.apache.commons:commons-lang3:3.4",
"org.apache.commons:commons-collections4:4.1",
// jOOQ dependencies
"org.springframework.boot:spring-boot-starter-jooq",
// EBean dependencies
"org.avaje.ebean:ebean:9.2.1",
"org.avaje.ebean:ebean-spring:7.2.1",
// MyBatis dependencies
'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.1.1',
'com.github.javaplugs:mybatis-types:0.3', // required so mybatis works with java8 datetime classes (LocalDate)
// jdbi dependencies
'org.jdbi:jdbi:2.77'
)
testCompile(
"org.springframework.boot:spring-boot-starter-test"
)
}
// we want to show following test events in the log
test {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
}
}
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE" // to include SpringBoot parent BOM
classpath "gradle.plugin.org.kt3k:ebean-enhance-plugin:2.0.5"
}
}
repositories {
jcenter()
maven { url "https://jitpack.io" }
}