-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (44 loc) · 1 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
plugins {
id 'java'
id 'com.diffplug.gradle.spotless' version '3.24.0'
id 'idea'
}
repositories {
mavenCentral()
}
spotless {
java {
googleJavaFormat('1.7')
}
}
idea {
module {
outputDir file('build/classes/main')
testOutputDir file('build/classes/test')
}
}
ext {
lombokVersion = '1.18.6'
hibernateVersion = '5.4.2.Final'
}
dependencies {
// lombok
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
// hibernate
compile "org.hibernate:hibernate-core:$hibernateVersion"
annotationProcessor "org.hibernate:hibernate-jpamodelgen:$hibernateVersion"
compile 'org.postgresql:postgresql:42.2.5'
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file("src/generated/java")
}
compileJava.options.compilerArgs += [
]
sourceSets {
generated {
java {
srcDirs = ['src/generated/java']
}
}
}