-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
70 lines (57 loc) · 1.51 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
buildscript {
ext {
springBootVersion = '2.1.1.RELEASE'
}
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:1.0.10"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.ewerk.gradle.plugins.querydsl'
group = 'net.anyjava'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
ext {
queryDslVersion = "4.1.4"
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-devtools')
compile("com.querydsl:querydsl-apt:$queryDslVersion")
compile "com.querydsl:querydsl-jpa:$queryDslVersion"
compile('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
runtime('com.h2database:h2')
}
ext {
querydslSrcDir = 'src/main/generated'
}
querydsl {
library = "com.querydsl:querydsl-apt:$queryDslVersion"
jpa = true
querydslSourcesDir = querydslSrcDir
}
sourceSets {
main {
java {
srcDirs += file(querydslSrcDir)
}
}
}
idea {
module {
generatedSourceDirs += file(querydslSrcDir) // just hint
}
}