-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (75 loc) · 2.71 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
buildscript {
ext {
springBootVersion = "1.5.6.RELEASE"
// springBootVersion = "2.0.0.M3"
queryDslVersion = "4.1.4"
jacksonVersion = "2.8.9"
jodatimeVersion = "2.9.9"
lombokVersion = "1.16.18"
}
repositories {
mavenCentral()
// For Spring Boot release candidates / milestones
// maven { url "https://repo.spring.io/snapshot" }
// maven { url "https://repo.spring.io/milestone" }
}
dependencies {
// Spring Boot gradle plugin
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
// PLEASE NOTE: only buildscript{..} and other plugins{..} script blocks are allowed before plugins{..} blocks, no other statements are allowed.
plugins {
id "com.ewerk.gradle.plugins.querydsl" version "1.0.8"
// Fix cohesion problem between QueryDSL and Lombok (part 1)
id "io.franzbecker.gradle-lombok" version "1.7"
}
// Fix cohesion problem between QueryDSL and Lombok (part 2)
project.afterEvaluate {
project.tasks.compileQuerydsl.options.compilerArgs = [
"-proc:only",
"-processor",
project.querydsl.processors() + ',lombok.launch.AnnotationProcessorHider$AnnotationProcessor'
]
}
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "org.springframework.boot"
// For Spring Boot release candidates / milestones
// apply plugin: "io.spring.dependency-management"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
jar {
baseName = "rh-mongodb"
version = "0.1"
}
// QueryDSL configs
querydsl {
springDataMongo = true
}
repositories {
mavenCentral()
// For Spring Boot release candidates / milestones
// maven { url "https://repo.spring.io/snapshot" }
// maven { url "https://repo.spring.io/milestone" }
}
dependencies {
// Spring DevTools (Boot)
// runtime("org.springframework.boot:spring-boot-devtools")
// Spring Data starter for MongoDB
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
// Spring Data starter for reactive MongoDB
// compile("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
// Querydsl is a framework which enables the construction of type-safe SQL-like queries for multiple backends including JPA, MongoDB and SQL in Java (http://www.querydsl.com/).
compile("com.querydsl:querydsl-apt:${queryDslVersion}")
compile("com.querydsl:querydsl-mongodb:${queryDslVersion}")
// FasterXML Jackson
compile("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
// Joda time
compile("joda-time:joda-time:${jodatimeVersion}")
// Lombok
compileOnly("org.projectlombok:lombok:${lombokVersion}")
// Testing
// testCompileOnly("org.projectlombok:lombok:${lombokVersion}")
// testCompile("org.springframework.boot:spring-boot-starter-test")
}