-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
94 lines (72 loc) · 2.97 KB
/
Copy pathbuild.gradle
File metadata and controls
94 lines (72 loc) · 2.97 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.2'
id 'io.spring.dependency-management' version '1.1.6'
}
group = 'com.acousea'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.xerial:sqlite-jdbc:3.41.2.2'
implementation 'org.postgresql:postgresql:42.7.2'
implementation 'org.hibernate.orm:hibernate-community-dialects'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// AWS
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
// Lombok
implementation 'org.projectlombok:lombok:1.18.28'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
// AOP
implementation 'org.springframework:spring-aop:'
// Spring security
implementation 'org.springframework.boot:spring-boot-starter-security'
// Serial communication
implementation 'com.fazecast:jSerialComm:2.9.2'
// Reactive programming and async support
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// REDIS
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// implementation 'org.springframework.data:spring-data-redis'
// implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// implementation 'org.springframework.session:spring-session-data-redis'
// Lettuce
implementation 'io.lettuce:lettuce-core:6.5.1.RELEASE'
// JUnit 5 tests
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
testImplementation 'org.junit.platform:junit-platform-runner:1.10.2'
testImplementation 'org.junit.platform:junit-platform-suite-api:1.10.2'
testImplementation 'org.junit.platform:junit-platform-suite-engine:1.10.2'
// Spring test
implementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
def currentProfile;
if (project.hasProperty('spring.profiles.active') && project.property('spring.profiles.active') == 'prod') {
currentProfile = 'production';
println("Current profile is ${currentProfile}")
// apply from: rootProject.file('gradle/build_prod.gradle');
} else if (project.hasProperty('spring.profiles.active') && project.property('spring.profiles.active') == 'dev') {
currentProfile = 'development';
println("Current profile is ${currentProfile}")
// apply from: rootProject.file('gradle/build_dev.gradle');
} else if (project.hasProperty('spring.profiles.active') && project.property('spring.profiles.active') == 'test') {
currentProfile = 'test';
println("Current profile is ${currentProfile}")
} else {
currentProfile = 'default';
println("Current profile is ${currentProfile}")
}
tasks.named('test') {
useJUnitPlatform()
}