-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (48 loc) · 1.9 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
plugins {
id 'org.springframework.boot' version '2.6.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'org.liquibase.gradle' version '2.1.1'
}
group 'de.bobek'
version '1.0-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.liquibase:liquibase-core'
runtimeOnly 'com.h2database:h2'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
liquibaseRuntime 'org.liquibase:liquibase-core'
liquibaseRuntime 'org.liquibase.ext:liquibase-hibernate5:4.5.0'
liquibaseRuntime 'mysql:mysql-connector-java'
liquibaseRuntime 'org.springframework.boot:spring-boot'
liquibaseRuntime 'org.springframework:spring-orm'
liquibaseRuntime 'javax.xml.bind:jaxb-api'
liquibaseRuntime 'org.hibernate:hibernate-core'
liquibaseRuntime sourceSets.main.output
}
diff.dependsOn compileJava
diffChangeLog.dependsOn compileJava
liquibase {
activities {
main {
driver 'com.mysql.cj.jdbc.Driver'
url 'jdbc:mysql://127.0.0.1:3306/my_database?useSSL=false&allowPublicKeyRetrieval=true'
username 'myUsername'
password 'myPassword'
changeLogFile 'src/main/resources/db/changelog/changelog-master.xml'
referenceUrl 'hibernate:spring:de.bobek' +
'?dialect=' +
'org.hibernate.dialect.MySQL5Dialect' +
'&hibernate.physical_naming_strategy=' +
'org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy' +
'&hibernate.implicit_naming_strategy=' +
'org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy'
}
}
}