-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (50 loc) · 1.49 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
group = 'com.thiagohora.hibernatejpa'
version = '0.0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
buildscript {
ext {
springBootVersion = '1.3.8.RELEASE'
dependencyManager = '0.6.1.RELEASE'
//hibernateVersion = '5.0.10.Final'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:${dependencyManager}"
//classpath "org.hibernate:hibernate-gradle-plugin:${hibernateVersion}"
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
//apply plugin: 'org.hibernate.orm'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
hibernateVersion = '4.3.10.Final'
}
/*
hibernate {
enhance {
enableLazyInitialization = true
}
}
*/
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.6'
annotationProcessor 'org.projectlombok:lombok:1.18.6'
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-test"
//implementation "org.hibernate:hibernate-core:5.0.4.Final"
//implementation "org.hibernate:hibernate-entitymanager:5.0.4.Final"
implementation "com.h2database:h2"
implementation "org.hibernate:hibernate-core:${hibernateVersion}"
implementation "org.hibernate:hibernate-entitymanager:${hibernateVersion}"
//implementation "org.springframework:spring-instrument:4.2.8.RELEASE"
}