-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
111 lines (99 loc) · 3.56 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
mavenLocal()
maven{url "https://jitpack.io"}
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://plugins.gradle.org/m2/' }
}
}
plugins {
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
id 'org.flywaydb.flyway' version '10.21.0'
id 'java'
}
group = 'org.daming'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '21'
targetCompatibility = '21'
def jsonwebtokenVersion = "0.12.6"
repositories {
mavenLocal()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-graphql'
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation 'com.graphql-java:graphql-java-extended-scalars:2023-01-24T02-11-56-babda5f'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
implementation 'org.postgresql:postgresql:42.7.4'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
implementation("io.jsonwebtoken:jjwt-api:${jsonwebtokenVersion}")
runtimeOnly("io.jsonwebtoken:jjwt-impl:${jsonwebtokenVersion}")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:${jsonwebtokenVersion}")
implementation 'commons-codec:commons-codec:1.17.1'
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
// Runtime, com.sun.xml.bind module
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation 'com.github.ben-manes.caffeine:caffeine'
implementation 'cn.hutool:hutool-crypto:5.8.33'
implementation 'org.yaml:snakeyaml:2.3'
implementation 'org.flywaydb:flyway-database-postgresql:10.21.0'
implementation 'com.cronutils:cron-utils:9.2.1'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.79'
implementation 'com.lmax:disruptor:4.0.0'
//developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
flyway {
url = 'jdbc:postgresql://127.0.0.1:5432/postgres'
user = 'postgres'
password = '123456'
baselineOnMigrate = true
skipExecutingMigrations = true
}
tasks.named('test') {
useJUnitPlatform()
}
bootJar {
mainClass = 'org.daming.hoteler.HotelerApplication'
}
jar {
// https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#packaging-executable.and-plain-archives
enabled = false
}
if (project.hasProperty('standalone')) {
sourceSets {
main {
resources {
exclude '**/application*.yml'
exclude '**/*.yml.back'
}
}
}
bootJar {
archiveFileName = "hoteler-standalone.jar"
mainClass = 'org.daming.hoteler.HotelerApplication'
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}