-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.74 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
plugins {
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.liquibase.gradle' version '2.0.4'
id 'java'
id 'war'
}
group = 'ru.cheezeapp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.2'
implementation 'org.springframework.boot:spring-boot-starter-web:2.5.2'
implementation 'org.liquibase:liquibase-core:4.3.5'
implementation 'org.apache.poi:poi-ooxml:5.2.2'
compileOnly 'org.projectlombok:lombok:1.18.20'
runtimeOnly 'org.postgresql:postgresql:42.2.23'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat:2.5.2'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.2'
liquibaseRuntime 'org.postgresql:postgresql:42.2.23'
liquibaseRuntime 'org.liquibase:liquibase-core:4.3.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.1'
}
liquibase {
activities {
main {
changeLogFile 'src/main/resources/db/changelog/db.changelog-master.xml'
url "jdbc:postgresql://$host:$port/$database?useUnicode=true&characterEncoding=windows-1251"
driver 'org.postgresql.Driver'
username "$user"
password "$pass"
contexts "$contexts"
}
}
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Main-Class': 'ru.cheezeapp.Application'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}