-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.gradle
64 lines (53 loc) · 2.09 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
def pkgName = 'com.bestpractice.api'
def pkgVersion = "1.1.0"
def javaVersion = !project.hasProperty('javaVersion') ? '17' : project.getProperty('javaVersion')
def artifactId = 'spring-boot-bestpractice'
sourceCompatibility = javaVersion
repositories {
mavenCentral()
}
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-nop'
}
dependencies {
// Spring
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-configuration-processor"
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-data-redis"
implementation "io.springfox:springfox-swagger2:2.8.0"
implementation "io.springfox:springfox-swagger-ui:2.8.0"
// Token
implementation 'com.auth0:java-jwt:4.4.0'
// Database
implementation "mysql:mysql-connector-java"
implementation "org.postgresql:postgresql"
implementation 'redis.clients:jedis:3.7.0'
implementation 'org.mongodb:mongo-java-driver:3.12.14'
implementation 'com.datastax.oss:java-driver-core:4.17.0'
implementation 'com.datastax.oss:java-driver-query-builder:4.17.0'
// Third party
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation 'org.hibernate.validator:hibernate-validator:6.2.0.Final'
testImplementation "org.hsqldb:hsqldb"
testImplementation "org.hibernate:hibernate-entitymanager"
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
}
ext.profile = (!project.hasProperty('profile') || !profile) ? 'local' : profile
sourceSets {
main {
resources {
srcDirs "src/main/resources", "src/main/resources-${profile}"
}
}
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}