-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.52 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
plugins {
id 'org.springframework.boot' version '2.7.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
configurations {
all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
unzipFile
}
group = 'com.mamezou-tech.example-service'
version = '0.6.0-SNAPSHOT'
sourceCompatibility = '1.17'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-integration'
implementation 'org.springframework.integration:spring-integration-mqtt'
implementation 'com.googlecode.soundlibs:mp3spi:1.9.5-1'
implementation 'software.amazon.awssdk:polly:2.17.213'
implementation 'com.google.zxing:javase:3.5.0'
implementation ('com.mamezou-tech.example-service:example-controller:' + version) {
changing = true
}
unzipFile ('com.mamezou-tech.example-service:example-application:' + version) {
changing = true
}
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
task unzip(type: Copy) {
def file = configurations.unzipFile.files.find {
'example-application-' + version + '.jar'
}
from zipTree(file)
into 'build/unzipFile'
}
task copy(type: Copy) {
from fileTree('build/unzipFile/BOOT-INF/classes')
into 'build/classes/java/main'
}
tasks.copy.dependsOn(tasks.unzip)
tasks.compileJava.dependsOn(tasks.copy)